angular.service.$location

Work In Progress This page is currently being revised. It might be incomplete or contain inaccuracies.

Description

Parses the browser location url and makes it available to your application. Any changes to the url are reflected into $location service and changes to $location are reflected to url. Notice that using browser's forward/back buttons changes the $location.

Dependencies

Methods

Properties

Example

<a href="#">clear hash</a> | <a href="#myPath?name=misko">test hash</a><br/> <input type='text' name="$location.hash"/> <pre>$location = {{$location}}</pre>