mirror of
https://github.com/Hopiu/angular.js.git
synced 2026-03-17 07:40:22 +00:00
docs(guide/location): fix example code - hashPrefix is a method
This commit is contained in:
parent
732db27cd6
commit
78728df099
1 changed files with 2 additions and 2 deletions
|
|
@ -212,7 +212,7 @@ In this mode, `$location` uses Hashbang URLs in all browsers.
|
|||
it('should show example', inject(
|
||||
function($locationProvider) {
|
||||
$locationProvider.html5Mode(false);
|
||||
$locationProvider.hashPrefix = '!';
|
||||
$locationProvider.hashPrefix('!');
|
||||
},
|
||||
function($location) {
|
||||
// open http://host.com/base/index.html#!/a
|
||||
|
|
@ -261,7 +261,7 @@ having to worry about whether the browser displaying your app supports the histo
|
|||
it('should show example', inject(
|
||||
function($locationProvider) {
|
||||
$locationProvider.html5Mode(true);
|
||||
$locationProvider.hashPrefix = '!';
|
||||
$locationProvider.hashPrefix('!');
|
||||
},
|
||||
function($location) {
|
||||
// in browser with HTML5 history support:
|
||||
|
|
|
|||
Loading…
Reference in a new issue