From 3a624a7ff5ac0f02ab4957af76c2f98c1596e232 Mon Sep 17 00:00:00 2001 From: Fred Sauer Date: Sun, 21 Oct 2012 12:56:55 -0700 Subject: [PATCH] docs(guide/location): fix table formatting Fix table formatting so headings are bold, rows are separated by lines, and rows have :hover style --- .../guide/dev_guide.services.$location.ngdoc | 138 +++++++++--------- 1 file changed, 71 insertions(+), 67 deletions(-) diff --git a/docs/content/guide/dev_guide.services.$location.ngdoc b/docs/content/guide/dev_guide.services.$location.ngdoc index 17d38b140665..8270b8989f26 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
$location.href = value
$location.hash = value
$location.update(value)
+
Navigation inside the appChange to
$location.href = value
$location.hash = value
$location.update(value)
$location.updateHash(value)
$location.path(path).search(search)
$location.hashPath = path$location.path(path)
$location.hashSearch = search$location.search(search)
Navigation outside the appUse lower level API
$location.href = value
$location.update(value)
$window.location.href = value
$location[protocol | host | port | path | search]$window.location[protocol | host | port | path | search]
Read accessChange to
$location.hashPath$location.path()
$location.hashSearch$location.search()
$location.href
$location.protocol
$location.host
$location.port
$location.path(path).search(search)
$location.hashPath = path$location.path(path)
$location.hashSearch = search$location.search(search)
Navigation outside the appUse lower level API
$location.href = value
$location.update(value)
$window.location.href = value
$location[protocol | host | port | path | search]$window.location[protocol | host | port | path | search]
Read accessChange to
$location.hashPath$location.path()
$location.hashSearch$location.search()
$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