阅读背景:

使用ui-router(AngularJS)时,$ rootScope。$ on(“$ routeChangeSuccess”或$ rootScope。$ on(“$ stateChangeSuccess”)不起作用

来源:互联网 

I am using UI-router for nested views in my application but at the sametime I want to listen for events when the route changes. Before using UI-router routeChangeSuccess was firing just fine but after ui-router it does not fire. Documentation suggests to use viewContedLoaded or stateChangeSuccess to be used but even they dont get fired. I am pasting my code snippet. Any help would be appreciated.I am using UI-router for nested views in my app




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: