Angular Run Block - Use UI-Router $stateProvider to Resolve Promise

后端 未结 4 984
死守一世寂寞
死守一世寂寞 2020-12-11 06:33

UI-Router is different than Angular\'s ngRoute. It supports everything the normal ngRoute can do as well as many extra fu

4条回答
  •  情深已故
    2020-12-11 07:14

    You won't have access to $stateProvider in run and I don't think you should be changing the state configuration after creating it (and you might have no way of doing it anyway), why not just add resolve on state creation?

提交回复
热议问题