angularJS拦截路由

$rootScope.$on('$stateChangeStart', function(event, toState, toParams, fromState, fromParams)
原文地址:https://www.cnblogs.com/mkxzy/p/7766817.html