Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Commit e1e7aca

Browse files
kstepIgorMinar
authored andcommitted
fix($locationProvider) hashPrefix's getter returned html5Mode + doc fix
1 parent 039041e commit e1e7aca

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/service/location.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -447,13 +447,13 @@ function $LocationProvider(){
447447
hashPrefix = prefix;
448448
return this;
449449
} else {
450-
return html5Mode;
450+
return hashPrefix;
451451
}
452452
}
453453

454454
/**
455455
* @ngdoc property
456-
* @name angular.module.ng.$locationProvider#hashPrefix
456+
* @name angular.module.ng.$locationProvider#html5Mode
457457
* @methodOf angular.module.ng.$locationProvider
458458
* @description
459459
* @param {string=} mode Use HTML5 strategy if available.

0 commit comments

Comments
 (0)