UI-Router: sequential resolve of parent and child states

后端 未结 2 1333
说谎
说谎 2021-02-05 12:26

I have two abstract states parent and parent.child, and an activateable state parent.child.grand.

I want pa

2条回答
  •  臣服心动
    2021-02-05 13:28

    If you add auth to the dependency injection of your grandchild resolve, ui-router will resolve it prior to the grandchild resolve.

    ['authsrv', 'auth', function(authsrv, auth){}]

    Hope that makes sense.

提交回复
热议问题