Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
replace()
1 parent a98931d commit 3c4460bCopy full SHA for 3c4460b
docs/content/guide/dev_guide.services.$location.ngdoc
@@ -121,6 +121,8 @@ All of the setter methods return the same `$location` object to allow chaining.
121
change multiple segments in one go, chain setters like this:
122
<pre>$location.path('/newValue').search({key: value});</pre>
123
124
+## Replace method
125
+
126
There is a special `replace` method which can be used to tell the $location service that the next
127
time the $location service is synced with the browser, the last history record should be replaced
128
instead of creating a new one. This is useful when you want to implement redirection, which would
0 commit comments