Angular ui-router to accomplish a conditional view

前端 未结 4 1305
春和景丽
春和景丽 2020-12-31 11:46

I am asking a similar question to this question: UI Router conditional ui views?, but my situation is a little more complex and I cannot seem to get the provided answer to w

4条回答
  •  悲哀的现实
    2020-12-31 12:23

    I ended up making the home controller a sibling of first and second, rather than a parent, and then had the controller of home do a $state.go to first or second depending on the results of the resolve.

提交回复
热议问题