mirror of
https://github.com/Hopiu/angular.js.git
synced 2026-05-05 05:34:43 +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>
|
<pre>
|
||||||
it('should show example', inject(
|
it('should show example', inject(
|
||||||
function($locationProvider) {
|
function($locationProvider) {
|
||||||
$locationProvider.html5mode = false;
|
$locationProvider.html5Mode(false);
|
||||||
$locationProvider.hashPrefix = '!';
|
$locationProvider.hashPrefix = '!';
|
||||||
},
|
},
|
||||||
function($location) {
|
function($location) {
|
||||||
|
|
@ -260,7 +260,7 @@ having to worry about whether the browser displaying your app supports the histo
|
||||||
<pre>
|
<pre>
|
||||||
it('should show example', inject(
|
it('should show example', inject(
|
||||||
function($locationProvider) {
|
function($locationProvider) {
|
||||||
$locationProvider.html5mode = true;
|
$locationProvider.html5Mode(true);
|
||||||
$locationProvider.hashPrefix = '!';
|
$locationProvider.hashPrefix = '!';
|
||||||
},
|
},
|
||||||
function($location) {
|
function($location) {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue