我想利用$stateChangeSuccess事件里的参数进行做操作,但是$stateChangeSuccess总是不执行,请问$stateChangeSucces的使用有什么规范吗?初学请多赐教!
迷茫2017-05-15 17:06:56
No problem is found in the code, you can check whether your run file has been imported
世界只因有你2017-05-15 17:06:56
There is no problem with the code in the picture, the event will be triggered, but the problem lies elsewhere.
伊谢尔伦2017-05-15 17:06:56
I also encountered this situation. Later I checked and found out that it was because I forgot to add dependencies in the module
漂亮男人2017-05-15 17:06:56
And I finally found that the way to write 1.xx of ui.router 0.xx seems to be different
世界只因有你2017-05-15 17:06:56
I also encountered this problem. I have been looking for the problem for a long time. There is no problem with the code. Just change angular-ui-router to the stable version. I started using the beta version and the current stable version is 0.4.2
<script src="http://cdn.bootcss.com/angular-ui-router/0.4.2/angular-ui-router.min.js"></script>