Angular UI-Router: child using parent's view

后端 未结 2 1058
野的像风
野的像风 2020-12-23 17:24

In story form:

What I am looking for here is a master-detail setup. The master is in list form and when I click on a link (relative to a particular

2条回答
  •  时光说笑
    2020-12-23 17:30

    You can use '@' to define an absolute path to the ui-view of your choice. For example: "detail@contacts" : { }, where this absolutely targets the 'detail' view in the 'contacts' state. within contacts.html

    Source: https://github.com/angular-ui/ui-router/wiki/Multiple-Named-Views

提交回复
热议问题