Skip to content

Commit

Permalink
#9 Fix scroll issues when navigating through pages
Browse files Browse the repository at this point in the history
  • Loading branch information
nadouani committed Mar 6, 2017
1 parent a14d21d commit 4e8a1e0
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions ui/app/scripts/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,9 @@ angular.module('cortex', [
positionX: 'right',
positionY: 'bottom'
});
})
.run(function($rootScope, $window){
$rootScope.$on('$stateChangeSuccess', function() {
$window.scrollTo(0, 0);
});
});

0 comments on commit 4e8a1e0

Please sign in to comment.