mirror of
https://github.com/Hopiu/angular.js.git
synced 2026-05-09 07:14:44 +00:00
fix($locationProvider) hashPrefix's getter returned html5Mode + doc fix
This commit is contained in:
parent
039041e3ae
commit
e1e7aca9a6
1 changed files with 2 additions and 2 deletions
|
|
@ -447,13 +447,13 @@ function $LocationProvider(){
|
||||||
hashPrefix = prefix;
|
hashPrefix = prefix;
|
||||||
return this;
|
return this;
|
||||||
} else {
|
} else {
|
||||||
return html5Mode;
|
return hashPrefix;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @ngdoc property
|
* @ngdoc property
|
||||||
* @name angular.module.ng.$locationProvider#hashPrefix
|
* @name angular.module.ng.$locationProvider#html5Mode
|
||||||
* @methodOf angular.module.ng.$locationProvider
|
* @methodOf angular.module.ng.$locationProvider
|
||||||
* @description
|
* @description
|
||||||
* @param {string=} mode Use HTML5 strategy if available.
|
* @param {string=} mode Use HTML5 strategy if available.
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue