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 --- src/service/location.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/service/location.js b/src/service/location.js index 356dfc21..6e01d669 100644 --- a/src/service/location.js +++ b/src/service/location.js @@ -400,7 +400,7 @@ function locationGetterSetter(property, preprocess) { * * @requires $browser * @requires $sniffer - * @requires $config + * @requires $locationConfig * @requires $document * * @description @@ -419,14 +419,14 @@ function locationGetterSetter(property, preprocess) { * * For more information see {@link guide/dev_guide.services.$location Developer Guide: Angular Services: Using $location} */ -angularServiceInject('$location', function($browser, $sniffer, $config, $document) { +angularServiceInject('$location', function($browser, $sniffer, $locationConfig, $document) { var scope = this, currentUrl, basePath = $browser.baseHref() || '/', pathPrefix = pathPrefixFromBase(basePath), - hashPrefix = $config.hashPrefix || '', + hashPrefix = $locationConfig.hashPrefix || '', initUrl = $browser.url(); - if ($config.html5Mode) { + if ($locationConfig.html5Mode) { if ($sniffer.history) { currentUrl = new LocationUrl(convertToHtml5Url(initUrl, basePath, hashPrefix), pathPrefix); } else { -- cgit v1.2.3