How to prevent angular route change conditionally

    You can simple do this by watching $locationChangeStart
    $scope.$on('$locationChangeStart', function(ev) {
        if (<Some Condition Here >) {
           ev.preventDefault();
        }
    });
    5
    Average: 5 (1 vote)