0

I tried it in the .run method:

$scope.$on('$locationChangeStart', function (event) {              
  if (!defaultValue.isAuthenticated)
    event.preventDefault();
}

but it did not work

LionC
  • 3,106
  • 1
  • 22
  • 31

0 Answers0