diff options
| author | Igor Minar | 2011-10-13 14:07:35 -0700 | 
|---|---|---|
| committer | Igor Minar | 2011-10-13 14:07:48 -0700 | 
| commit | 7a19eb84aa3df39f42e42a4e4ac0b169862119be (patch) | |
| tree | c11c16d5be55f642dc1e6086583d266d246675e2 /src/service/location.js | |
| parent | 718741acab907a88682387f587d5342e3fcd40d2 (diff) | |
| download | angular.js-7a19eb84aa3df39f42e42a4e4ac0b169862119be.tar.bz2 | |
docs($location): fix $config -> $locationConfig in docs
Diffstat (limited to 'src/service/location.js')
| -rw-r--r-- | src/service/location.js | 8 | 
1 files changed, 4 insertions, 4 deletions
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 {  | 
