← BYTES
AngularJS·Intermediate·Ref: 5.2.9

What does $location provide in AngularJS?

Have a question about this video? Mention reference 5.2.9 when you contact us.

a.A way to access the device's GPS coordinates
b.A service that parses and lets you manipulate the browser's current URL (path, search params, hash) in a way that AngularJS's routing can observe
c.A CSS positioning utility
d.A way to look up physical mailing addresses
$location exposes and lets you change the current URL programmatically (e.g. $location.path('/new-route')), and integrates with AngularJS's digest cycle so route/URL changes are observed and reacted to properly.

Find this on YouTube & Instagram

Every BYTES video is tagged with its reference number and topic — search any of these on YouTube or Instagram to find this one:

#BYTES#BYTES529#AngularJS