diff options
| author | Niall Smart | 2013-07-01 19:44:52 -0700 |
|---|---|---|
| committer | Pete Bacon Darwin | 2013-07-02 10:01:51 +0100 |
| commit | 78728df09907e7f63a50fe5ecbb2673a74556a5b (patch) | |
| tree | 25e3daa0854def64ea485295ddd1c68e6bdd67e4 | |
| parent | 732db27cd6a172c49d5bf1d5afc72ea1fcccad11 (diff) | |
| download | angular.js-78728df09907e7f63a50fe5ecbb2673a74556a5b.tar.bz2 | |
docs(guide/location): fix example code - `hashPrefix` is a method
| -rw-r--r-- | docs/content/guide/dev_guide.services.$location.ngdoc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/content/guide/dev_guide.services.$location.ngdoc b/docs/content/guide/dev_guide.services.$location.ngdoc index 027a2332..1658ca18 100644 --- a/docs/content/guide/dev_guide.services.$location.ngdoc +++ b/docs/content/guide/dev_guide.services.$location.ngdoc @@ -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: |
