I solved it.
(我解决了)
In my project, root state is login state if login is successful then it goes to admin.dashboard
state, where admin state was an abstract state.
(在我的项目中,如果登录成功,则根状态为登录状态,然后进入admin.dashboard
状态,其中admin状态为抽象状态。)
I used $state.transitionTo
method instead of $state.go
when transitioning to the admin.dashboard
state.
(转换为admin.dashboard
状态时,我使用了$state.transitionTo
方法而不是$state.go
。)
I've also added on app.config section.
(我还添加了app.config部分。)
$qProvider.errorOnUnhandledRejections(false);
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…