diff options
| author | Fred Sauer | 2012-10-21 12:56:55 -0700 |
|---|---|---|
| committer | Igor Minar | 2012-10-31 14:47:53 -0700 |
| commit | 3a624a7ff5ac0f02ab4957af76c2f98c1596e232 (patch) | |
| tree | 5898d4120f7729c255b4229084869eee29a7f9fc | |
| parent | b32adb7deaaa31fae97afacbeec224fdd86616f6 (diff) | |
| download | angular.js-3a624a7ff5ac0f02ab4957af76c2f98c1596e232.tar.bz2 | |
docs(guide/location): fix table formatting
Fix table formatting so headings are bold, rows are separated by lines, and rows have :hover style
| -rw-r--r-- | docs/content/guide/dev_guide.services.$location.ngdoc | 138 |
1 files 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 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 -<table> +<table class="table"> <thead> <tr> - <td class="empty-corner-lt"></td> - <td>window.location</td> - <td>$location service</td> + <th class="empty-corner-lt"></th> + <th>window.location</th> + <th>$location service</th> </tr> </thead> @@ -165,13 +165,13 @@ facilitate the browser URL change and history management. <img src="img/guide/hashbang_vs_regular_url.jpg"> -<table> +<table class="table"> <thead> <tr> - <td class="empty-corner-lt"></td> - <td>Hashbang mode</td> - <td>HTML5 mode</td> + <th class="empty-corner-lt"></th> + <th>Hashbang mode</th> + <th>HTML5 mode</th> </tr> </thead> @@ -543,69 +543,73 @@ then uses the information it obtains to compose hashbang URLs (such as ## Changes to your code -<table> - <tr class="head"> - <td>Navigation inside the app</td> - <td>Change to</td> - </tr> - - <tr> - <td>$location.href = value<br />$location.hash = value<br />$location.update(value)<br +<table class="table"> + <thead> + <tr class="head"> + <th>Navigation inside the app</th> + <th>Change to</th> + </tr> + </thead> + + <tbody> + <tr> + <td>$location.href = value<br />$location.hash = value<br />$location.update(value)<br />$location.updateHash(value)</td> - <td>$location.path(path).search(search)</td> - </tr> - - <tr> - <td>$location.hashPath = path</td> - <td>$location.path(path)</td> - </tr> - - <tr> - <td>$location.hashSearch = search</td> - <td>$location.search(search)</td> - </tr> - - <tr class="head"> - <td>Navigation outside the app</td> - <td>Use lower level API</td> - </tr> - - <tr> - <td>$location.href = value<br />$location.update(value)</td> - <td>$window.location.href = value</td> - </tr> - - <tr> - <td>$location[protocol | host | port | path | search]</td> - <td>$window.location[protocol | host | port | path | search]</td> - </tr> - - <tr class="head"> - <td>Read access</td> - <td>Change to</td> - </tr> - - <tr> - <td>$location.hashPath</td> - <td>$location.path()</td> - </tr> - - <tr> - <td>$location.hashSearch</td> - <td>$location.search()</td> - </tr> - - <tr> - <td>$location.href<br />$location.protocol<br />$location.host<br />$location.port<br + <td>$location.path(path).search(search)</td> + </tr> + + <tr> + <td>$location.hashPath = path</td> + <td>$location.path(path)</td> + </tr> + + <tr> + <td>$location.hashSearch = search</td> + <td>$location.search(search)</td> + </tr> + + <tr class="head"> + <td>Navigation outside the app</td> + <td>Use lower level API</td> + </tr> + + <tr> + <td>$location.href = value<br />$location.update(value)</td> + <td>$window.location.href = value</td> + </tr> + + <tr> + <td>$location[protocol | host | port | path | search]</td> + <td>$window.location[protocol | host | port | path | search]</td> + </tr> + + <tr class="head"> + <td>Read access</td> + <td>Change to</td> + </tr> + + <tr> + <td>$location.hashPath</td> + <td>$location.path()</td> + </tr> + + <tr> + <td>$location.hashSearch</td> + <td>$location.search()</td> + </tr> + + <tr> + <td>$location.href<br />$location.protocol<br />$location.host<br />$location.port<br />$location.hash</td> - <td>$location.absUrl()<br />$location.protocol()<br />$location.host()<br />$location.port()<br + <td>$location.absUrl()<br />$location.protocol()<br />$location.host()<br />$location.port()<br />$location.path() + $location.search()</td> - </tr> + </tr> - <tr> - <td>$location.path<br />$location.search</td> - <td>$window.location.path<br />$window.location.search</td> - </tr> + <tr> + <td>$location.path<br />$location.search</td> + <td>$window.location.path<br />$window.location.search</td> + </tr> + </tbody> </table> ## Two-way binding to $location |
