aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/service/location.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/service/location.js b/src/service/location.js
index 3e8ba0c3..43e6ce52 100644
--- a/src/service/location.js
+++ b/src/service/location.js
@@ -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.