fix($locationProvider) hashPrefix's getter returned html5Mode + doc fix

This commit is contained in:
Konstantin Stepanov 2012-01-17 18:04:58 +03:00 committed by Igor Minar
parent 039041e3ae
commit e1e7aca9a6

View file

@ -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.