mirror of
https://github.com/zhigang1992/angular.js.git
synced 2026-05-19 12:52:25 +08:00
fix($locationProvider) hashPrefix's getter returned html5Mode + doc fix
This commit is contained in:
committed by
Igor Minar
parent
039041e3ae
commit
e1e7aca9a6
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user