diff --git a/docs/content/guide/dev_guide.services.$location.ngdoc b/docs/content/guide/dev_guide.services.$location.ngdoc index 17d38b14..8270b898 100644 --- a/docs/content/guide/dev_guide.services.$location.ngdoc +++ b/docs/content/guide/dev_guide.services.$location.ngdoc @@ -23,13 +23,13 @@ changes to $location are reflected into the browser address bar. ## Comparing $location to window.location - +
- - - + + + @@ -165,13 +165,13 @@ facilitate the browser URL change and history management. -
window.location$location servicewindow.location$location service
+
- - - + + + @@ -543,69 +543,73 @@ then uses the information it obtains to compose hashbang URLs (such as ## Changes to your code -
Hashbang modeHTML5 modeHashbang modeHTML5 mode
- - - - +
Navigation inside the appChange to
+ + + + + + - - + - - + + - - - - + + + + - - - - + + + + - - - - + + + + - - - - + + + + - - - - + + + + - - - - + + + + - - - - + + + + - - - - + + + + - - - - + - - - - + + + + +
Navigation inside the appChange to
$location.href = value
$location.hash = value
$location.update(value)
+
$location.href = value
$location.hash = value
$location.update(value)
$location.updateHash(value)
$location.path(path).search(search)
$location.path(path).search(search)
$location.hashPath = path$location.path(path)
$location.hashPath = path$location.path(path)
$location.hashSearch = search$location.search(search)
$location.hashSearch = search$location.search(search)
Navigation outside the appUse lower level API
Navigation outside the appUse lower level API
$location.href = value
$location.update(value)
$window.location.href = value
$location.href = value
$location.update(value)
$window.location.href = value
$location[protocol | host | port | path | search]$window.location[protocol | host | port | path | search]
$location[protocol | host | port | path | search]$window.location[protocol | host | port | path | search]
Read accessChange to
Read accessChange to
$location.hashPath$location.path()
$location.hashPath$location.path()
$location.hashSearch$location.search()
$location.hashSearch$location.search()
$location.href
$location.protocol
$location.host
$location.port
+
$location.href
$location.protocol
$location.host
$location.port
$location.hash
$location.absUrl()
$location.protocol()
$location.host()
$location.port()
$location.absUrl()
$location.protocol()
$location.host()
$location.port()
$location.path() + $location.search()
$location.path
$location.search
$window.location.path
$window.location.search
$location.path
$location.search
$window.location.path
$window.location.search
## Two-way binding to $location