@@ -356,15 +356,15 @@ legacy browsers and hashbang links in modern browser:
356
356
357
357
### Example
358
358
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 .
362
362
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 /
364
364
redirect to regular / hashbang url, as this conversion happens only during parsing the initial URL
365
365
= on page reload.
366
366
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.
368
368
369
369
#### Browser in HTML5 mode
370
370
<example module="html5-mode" name="location-html5-mode">
@@ -389,6 +389,7 @@ In these examples we use `<base href="/base/index.html" />`
389
389
<file name="app.js">
390
390
angular.module('html5-mode', ['fake-browser', 'address-bar'])
391
391
392
+ // Configure the fakeBrowser. Do not set these values in actual projects.
392
393
.constant('initUrl', 'http://www.example.com/base/path?a=b#h')
393
394
.constant('baseHref', '/base/index.html')
394
395
.value('$sniffer', { history: true })
@@ -538,6 +539,7 @@ In these examples we use `<base href="/base/index.html" />`
538
539
<file name="app.js">
539
540
angular.module('hashbang-mode', ['fake-browser', 'address-bar'])
540
541
542
+ // Configure the fakeBrowser. Do not set these values in actual projects.
541
543
.constant('initUrl', 'http://www.example.com/base/index.html#!/path?a=b#h')
542
544
.constant('baseHref', '/base/index.html')
543
545
.value('$sniffer', { history: false })
0 commit comments