2017-07-11 101 views
0

这个事件没有被解雇,我在我的app中有ui.router依赖。

$rootScope.$on('$stateChangeSuccess', (event, toState, toParams, fromState, fromParams, options)=>{ 
     console.log('here') 
}); 
+0

你在哪里使用这些线? $ rootScope注入了吗? – Ved

回答