I tried it in the .run
method:
$scope.$on('$locationChangeStart', function (event) {
if (!defaultValue.isAuthenticated)
event.preventDefault();
}
but it did not work
I tried it in the .run
method:
$scope.$on('$locationChangeStart', function (event) {
if (!defaultValue.isAuthenticated)
event.preventDefault();
}
but it did not work