Guide: Using $location
Improve this DocWhat does it do?
The $location
service parses the URL in the browser address bar (based on window.location
) and makes the URL available to your application. Changes to the URL in the address bar are reflected into the $location
service and changes to $location
are reflected into the browser address bar.
The $location service:
- Exposes the current URL in the browser address bar, so you can
- Watch and observe the URL.
- Change the URL.
- Maintains synchronization betw