$location (service in module ng )

Description

The $location service parses the URL in the browser address bar (based on the window.location) and makes the URL available to your application. Changes to the URL in the address bar are reflected into $location service and changes to $location are reflected into the browser address bar.

The $location service:

For more information see Developer Guide: Angular Services: Using $location

Dependencies

Methods