Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Commit 6e80d0a

Browse files
committed
docs(guide/$location): improve formatting
1 parent ae637ac commit 6e80d0a

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

docs/content/guide/$location.ngdoc

+7-7
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@
55

66
# What does it do?
77

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.
1111

1212
**The $location service:**
1313

@@ -21,7 +21,7 @@ changes to $location are reflected into the browser address bar.
2121
- Represents the URL object as a set of methods (protocol, host, port, path, search, hash).
2222

2323

24-
## Comparing $location to window.location
24+
## Comparing `$location` to `window.location`
2525

2626
<table class="table">
2727
<thead>
@@ -68,7 +68,7 @@ changes to $location are reflected into the browser address bar.
6868
</tbody>
6969
</table>
7070

71-
## When should I use $location?
71+
## When should I use `$location`?
7272
Any time your application needs to react to a change in the current URL or if you want to change
7373
the current URL in the browser.
7474

@@ -85,7 +85,7 @@ others customizing the configuration can enable new features.
8585
Once the `$location` service is instantiated, you can interact with it via jQuery-style getter and
8686
setter methods that allow you to get or change the current URL in the browser.
8787

88-
## $location service configuration
88+
## `$location` service configuration
8989

9090
To configure the `$location` service, retrieve the
9191
{@link ng.$locationProvider $locationProvider} and set the parameters as follows:
@@ -835,7 +835,7 @@ angular.module('locationExample', [])
835835

836836
# Related API
837837

838-
* {@link ng.$location $location API}
838+
* {@link ng.$location `$location` API}
839839

840840

841841

0 commit comments

Comments
 (0)