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.