From 36d1d323644a4c66db7ea4c6f98166002ba24b8b Mon Sep 17 00:00:00 2001 From: gdennie Date: Sun, 22 Sep 2013 11:56:25 -0400 Subject: [PATCH] Replace method needs a title --- docs/content/guide/dev_guide.services.$location.ngdoc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/content/guide/dev_guide.services.$location.ngdoc b/docs/content/guide/dev_guide.services.$location.ngdoc index fac3ca6f955a..6ae64f77ef0f 100644 --- a/docs/content/guide/dev_guide.services.$location.ngdoc +++ b/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. change multiple segments in one go, chain setters like this:
$location.path('/newValue').search({key: value});
+## 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