angular $stateProvider how to check if url is changed

there are ways to check if stateProvider is changed

1. $scope.$on('$stateChangeSuccess', function (event, toState, toParams, fromState, fromParams){

});

and also you can watch $locationChangeStart ..

I linked detail page below


https://github.com/angular-ui/ui-router/wiki#state-change-events

Comments

Popular posts from this blog

Project euler 169 found clue

Floyd-Warshall's algorithm