My Blog List

Wednesday, June 18, 2014

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

No comments:

Post a Comment