Skip to content

Commit 3c4460b

Browse files
gdenniepetebacondarwin
authored andcommitted
docs(guide/$location): provide a title for section about replace()
Closes angular#4104
1 parent a98931d commit 3c4460b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

docs/content/guide/dev_guide.services.$location.ngdoc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,8 @@ All of the setter methods return the same `$location` object to allow chaining.
121121
change multiple segments in one go, chain setters like this:
122122
<pre>$location.path('/newValue').search({key: value});</pre>
123123

124+
## Replace method
125+
124126
There is a special `replace` method which can be used to tell the $location service that the next
125127
time the $location service is synced with the browser, the last history record should be replaced
126128
instead of creating a new one. This is useful when you want to implement redirection, which would

0 commit comments

Comments
 (0)