You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Apr 12, 2024. It is now read-only.
Copy file name to clipboardExpand all lines: docs/content/guide/$location.ngdoc
+7-7
Original file line number
Diff line number
Diff line change
@@ -5,9 +5,9 @@
5
5
6
6
# What does it do?
7
7
8
-
The `$location` service parses the URL in the browser address bar (based on the [window.location](https://developer.mozilla.org/en/window.location)) and makes the URL available to
9
-
your application. Changes to the URL in the address bar are reflected into $location service and
10
-
changes to $location are reflected into the browser address bar.
8
+
The `$location` service parses the URL in the browser address bar (based on [`window.location`](https://developer.mozilla.org/en/window.location)) and makes the URL available to
9
+
your application. Changes to the URL in the address bar are reflected into the `$location` service and
10
+
changes to `$location` are reflected into the browser address bar.
11
11
12
12
**The $location service:**
13
13
@@ -21,7 +21,7 @@ changes to $location are reflected into the browser address bar.
21
21
- Represents the URL object as a set of methods (protocol, host, port, path, search, hash).
22
22
23
23
24
-
## Comparing $location to window.location
24
+
## Comparing `$location` to `window.location`
25
25
26
26
<table class="table">
27
27
<thead>
@@ -68,7 +68,7 @@ changes to $location are reflected into the browser address bar.
68
68
</tbody>
69
69
</table>
70
70
71
-
## When should I use $location?
71
+
## When should I use `$location`?
72
72
Any time your application needs to react to a change in the current URL or if you want to change
73
73
the current URL in the browser.
74
74
@@ -85,7 +85,7 @@ others customizing the configuration can enable new features.
85
85
Once the `$location` service is instantiated, you can interact with it via jQuery-style getter and
86
86
setter methods that allow you to get or change the current URL in the browser.
87
87
88
-
## $location service configuration
88
+
## `$location` service configuration
89
89
90
90
To configure the `$location` service, retrieve the
91
91
{@link ng.$locationProvider $locationProvider} and set the parameters as follows:
0 commit comments