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

Commit 3485ba1

Browse files
committed
docs(guide/Using $location): note that the fakeBrowser is not for actual projects
Closes #12982 Closes #12987
1 parent 2f61145 commit 3485ba1

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

docs/content/guide/$location.ngdoc

+7-5
Original file line numberDiff line numberDiff line change
@@ -356,15 +356,15 @@ legacy browsers and hashbang links in modern browser:
356356

357357
### Example
358358

359-
Here you can see two `$location` instances, both in **Html5 mode**, but on different browsers, so
360-
that you can see the differences. These `$location` services are connected to a fake browsers. Each
361-
input represents the address bar of the browser.
359+
Here you can see two `$location` instances that show the difference between **Html5 mode** and **Html5 Fallback mode**.
360+
Note that to simulate different levels of browser support, the `$location` instances are connected to
361+
a fakeBrowser service, which you don't have to set up in actual projects.
362362

363-
Note that when you type hashbang url into first browser (or vice versa) it doesn't rewrite /
363+
Note that when you type hashbang url into the first browser (or vice versa) it doesn't rewrite /
364364
redirect to regular / hashbang url, as this conversion happens only during parsing the initial URL
365365
= on page reload.
366366

367-
In these examples we use `<base href="/base/index.html" />`
367+
In these examples we use `<base href="/base/index.html" />`. The inputs represent the address bar of the browser.
368368

369369
#### Browser in HTML5 mode
370370
<example module="html5-mode" name="location-html5-mode">
@@ -389,6 +389,7 @@ In these examples we use `<base href="/base/index.html" />`
389389
<file name="app.js">
390390
angular.module('html5-mode', ['fake-browser', 'address-bar'])
391391

392+
// Configure the fakeBrowser. Do not set these values in actual projects.
392393
.constant('initUrl', 'http://www.example.com/base/path?a=b#h')
393394
.constant('baseHref', '/base/index.html')
394395
.value('$sniffer', { history: true })
@@ -538,6 +539,7 @@ In these examples we use `<base href="/base/index.html" />`
538539
<file name="app.js">
539540
angular.module('hashbang-mode', ['fake-browser', 'address-bar'])
540541

542+
// Configure the fakeBrowser. Do not set these values in actual projects.
541543
.constant('initUrl', 'http://www.example.com/base/index.html#!/path?a=b#h')
542544
.constant('baseHref', '/base/index.html')
543545
.value('$sniffer', { history: false })

0 commit comments

Comments
 (0)