Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Code for detecting when the back button is used
- $rootScope.$on('$locationChangeSuccess', function() {
- $rootScope.actualLocation = $location.path();
- });
- $rootScope.$watch(function () {return $location.path()}, function (newLocation, oldLocation) {
- if($rootScope.actualLocation === newLocation) {
- $anchorScrollProvider.disableAutoScrolling();
- }
- });
Add Comment
Please, Sign In to add comment