Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Commit 78728df

Browse files
Niall Smartpetebacondarwin
Niall Smart
authored andcommitted
docs(guide/location): fix example code - hashPrefix is a method
1 parent 732db27 commit 78728df

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/content/guide/dev_guide.services.$location.ngdoc

+2-2
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ In this mode, `$location` uses Hashbang URLs in all browsers.
212212
it('should show example', inject(
213213
function($locationProvider) {
214214
$locationProvider.html5Mode(false);
215-
$locationProvider.hashPrefix = '!';
215+
$locationProvider.hashPrefix('!');
216216
},
217217
function($location) {
218218
// 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
261261
it('should show example', inject(
262262
function($locationProvider) {
263263
$locationProvider.html5Mode(true);
264-
$locationProvider.hashPrefix = '!';
264+
$locationProvider.hashPrefix('!');
265265
},
266266
function($location) {
267267
// in browser with HTML5 history support:

0 commit comments

Comments
 (0)