Skip to content

Commit 39e2509

Browse files
archer308Cameron Knight
authored and
Cameron Knight
committed
docs(guide/$location): fix a typo
Change "window.location.path" to "window.location.pathname". Closes angular#8012
1 parent 90c5e65 commit 39e2509

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/content/guide/$location.ngdoc

+1-1
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ changes to $location are reflected into the browser address bar.
6060

6161
<tr>
6262
<td class="head">aware of docroot/context from which the application is loaded</td>
63-
<td>no - window.location.path returns "/docroot/actual/path"</td>
63+
<td>no - window.location.pathname returns "/docroot/actual/path"</td>
6464
<td>yes - $location.path() returns "/actual/path"</td>
6565
</tr>
6666

0 commit comments

Comments
 (0)