aboutsummaryrefslogtreecommitdiffstats
path: root/docs/app
diff options
context:
space:
mode:
Diffstat (limited to 'docs/app')
-rw-r--r--docs/app/src/directives.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/docs/app/src/directives.js b/docs/app/src/directives.js
index 15bef69b..99a751c0 100644
--- a/docs/app/src/directives.js
+++ b/docs/app/src/directives.js
@@ -10,9 +10,10 @@ angular.module('directives', [])
*
* @description Ensure that the browser scrolls when the anchor is clicked
*/
-.directive('backToTop', ['$anchorScroll', function($anchorScroll) {
+.directive('backToTop', ['$anchorScroll', '$location', function($anchorScroll, $location) {
return function link(scope, element) {
element.on('click', function(event) {
+ $location.hash('');
scope.$apply($anchorScroll);
});
};