doc(guide): Fix examples of $location.html5mode

This commit is contained in:
Shai Reznik 2013-01-09 00:18:47 +02:00 committed by Brian Ford
parent ef7a61a67e
commit 3a71c1e595

View file

@ -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) {