【发布时间】:2018-08-17 17:23:56
【问题描述】:
我想实现以下行为:
路线:
- / ROOT
- /患者 PANEL1 depth-1
- /患者/1 PANEL2 depth-2
- /患者/1/日志 PANEL3 depth-3
我想要以下路由定义:
const routes: Routes = [
{
path: 'patients',
component: PatientsComponent,
children: [
{
path: '',
component: PatientsListComponent,
children: [
{
path: ':id',
component: PatientDetailsComponent,
children: [
{
path: 'log',
component: PatientLogComponent,
}
]
}
]
}
]
},
];
如果我这样做 DOM 结构是嵌套的......是否可以水平打开子级(类似兄弟姐妹)?进一步说,我还想启用动画,这样如果深度超过 3 个,第一个面板的宽度就会塌陷......
【问题讨论】:
标签: angular angular-router angular-animations