Skip to main content
replaced http://stackoverflow.com/ with https://stackoverflow.com/
Source Link
URL Rewriter Bot
URL Rewriter Bot

Try using the $locationChangeStart event instead

$scope.$on("$locationChangeStart", function(event){
    event.preventDefault();
})

Based off this question: AngularJS - Detecting, stalling, and cancelling route changesAngularJS - Detecting, stalling, and cancelling route changes

Try using the $locationChangeStart event instead

$scope.$on("$locationChangeStart", function(event){
    event.preventDefault();
})

Based off this question: AngularJS - Detecting, stalling, and cancelling route changes

Try using the $locationChangeStart event instead

$scope.$on("$locationChangeStart", function(event){
    event.preventDefault();
})

Based off this question: AngularJS - Detecting, stalling, and cancelling route changes

Source Link
Mathew Berg
  • 28.8k
  • 11
  • 72
  • 94

Try using the $locationChangeStart event instead

$scope.$on("$locationChangeStart", function(event){
    event.preventDefault();
})

Based off this question: AngularJS - Detecting, stalling, and cancelling route changes