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
No comments:
Post a Comment