module.run() and $state.go() angularJS

后端 未结 7 2247
猫巷女王i
猫巷女王i 2021-02-12 12:38

I might have some kind of missunderstanding. Im using angular ui router and i have the next issue:

I have the next State provider:

angular
.module(\'Main         


        
7条回答
  •  醉酒成梦
    2021-02-12 13:05

    I experienced a similar problem. $state.go not working in the .run function.

    Placing $state.go in a service solved my problem.

提交回复
热议问题