From 7a19eb84aa3df39f42e42a4e4ac0b169862119be Mon Sep 17 00:00:00 2001
From: Igor Minar
Date: Thu, 13 Oct 2011 14:07:35 -0700
Subject: docs($location): fix $config -> $locationConfig in docs
---
docs/content/guide/dev_guide.services.$location.ngdoc | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
(limited to 'docs/content/guide')
diff --git a/docs/content/guide/dev_guide.services.$location.ngdoc b/docs/content/guide/dev_guide.services.$location.ngdoc
index fa8238fe..a50bb01b 100644
--- a/docs/content/guide/dev_guide.services.$location.ngdoc
+++ b/docs/content/guide/dev_guide.services.$location.ngdoc
@@ -88,8 +88,8 @@ setter methods that allow you to get or change the current URL in the browser.
## $location service configuration
-To configure the `$location` service, you define the `$config` service which is an object with
-configuration properties:
+To configure the `$location` service, you define the `$locationConfig` service which is an object
+with configuration properties:
- **html5Mode**: {boolean}
`true` - see Html5 mode
@@ -102,7 +102,7 @@ configuration properties:
### Example configuration
-angular.service('$config', function() {
+angular.service('$locationConfig', function() {
return {
html5mode: true,
hashPrefix: '!'
@@ -205,7 +205,7 @@ In this mode, `$location` uses Hashbang URLs in all browsers.
### Example
-angular.service('$config', function() {
+angular.service('$locationConfig', function() {
return {
html5Mode: false,
hashPrefix: '!'
@@ -253,7 +253,7 @@ having to worry about whether the browser displaying your app supports the histo
### Example
-angular.service('$config', function() {
+angular.service('$locationConfig', function() {
return {
html5Mode: true,
hashPrefix: '!'
@@ -456,7 +456,7 @@ ng:ext-link>external
function initEnv(name) {
var root = angular.element(document.getElementById(name + '-mode'));
var scope = angular.scope(null, {
- $config: {html5Mode: true, hashPrefix: '!'},
+ $locationConfig: {html5Mode: true, hashPrefix: '!'},
$browser: browsers[name],
$document: root,
$sniffer: {history: name == 'html5'}
--
cgit v1.2.3