docs(guide/$location): provide a title for section about replace()

Closes #4104
This commit is contained in:
gdennie 2013-09-22 11:56:25 -04:00 committed by Pete Bacon Darwin
parent a98931de0e
commit 3c4460b513

View file

@ -121,6 +121,8 @@ All of the setter methods return the same `$location` object to allow chaining.
change multiple segments in one go, chain setters like this:
<pre>$location.path('/newValue').search({key: value});</pre>
## Replace method
There is a special `replace` method which can be used to tell the $location service that the next
time the $location service is synced with the browser, the last history record should be replaced
instead of creating a new one. This is useful when you want to implement redirection, which would