How to watch route change in angularjs

    To watch route change in angularjs you can do this by watching on $routeChangeStart, $routeChangeSuccess, $routeChangeError
    $scope.$on('$routeChangeStart', function(next, current) {
    //Where next, current are respective routes
    //You can write here whatever you want to do
    });
    5
    Average: 5 (1 vote)