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;
return this;
} else {
return html5Mode;
return hashPrefix;
}
}
/**
* @ngdoc property
* @name angular.module.ng.$locationProvider#hashPrefix
* @name angular.module.ng.$locationProvider#html5Mode
* @methodOf angular.module.ng.$locationProvider
* @description
* @param {string=} mode Use HTML5 strategy if available.