Angular UI Router - How to preserve views while switching views

后端 未结 2 1039
隐瞒了意图╮
隐瞒了意图╮ 2021-01-06 07:53

I am I new to Angular and UI Router.

Plunk http://plnkr.co/edit/1wfyrGryfGG5RtXozPFY?p=preview

Setup I have three top level

2条回答
  •  南笙
    南笙 (楼主)
    2021-01-06 08:27

    I wanted similar functionality too, but ui-router doesn't yet support it. I forked ui-router to support "parallel states" and submitted it to the project for comment. The gist of the conversation is that ui-router will eventually support some form of parallel states but not yet. In the meantime, you can try my fork of 0.2.10 which provides the parallel states that you want.

    Read the conversation here: https://github.com/angular-ui/ui-router/issues/894

    View the sample parallel tabs plunk here: http://plnkr.co/edit/YhQyPV?p=preview

    Here is the fork; build it with grunt: https://github.com/christopherthielen/ui-router

提交回复
热议问题