mirror of
https://github.com/Hopiu/angular.js.git
synced 2026-03-17 07:40:22 +00:00
doc(guide): Fix examples of $location.html5mode
This commit is contained in:
parent
ef7a61a67e
commit
3a71c1e595
1 changed files with 2 additions and 2 deletions
|
|
@ -211,7 +211,7 @@ In this mode, `$location` uses Hashbang URLs in all browsers.
|
|||
<pre>
|
||||
it('should show example', inject(
|
||||
function($locationProvider) {
|
||||
$locationProvider.html5mode = false;
|
||||
$locationProvider.html5Mode(false);
|
||||
$locationProvider.hashPrefix = '!';
|
||||
},
|
||||
function($location) {
|
||||
|
|
@ -260,7 +260,7 @@ having to worry about whether the browser displaying your app supports the histo
|
|||
<pre>
|
||||
it('should show example', inject(
|
||||
function($locationProvider) {
|
||||
$locationProvider.html5mode = true;
|
||||
$locationProvider.html5Mode(true);
|
||||
$locationProvider.hashPrefix = '!';
|
||||
},
|
||||
function($location) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue