0
组件TwoComponent
显示在常规router-outlet
内部并在其模板内命名为router-outlet
。我使用下面的代码来显示子路由(类似于regular outlets
的使用方式),但它不起作用。指定插座内部的常规插座
{
path: 'two',
component: TwoComponent,
outlet: 'named',
children: [
{
path: 'child',
component: TwoChildComponent
}
]
}
请看看这个plunkr https://embed.plnkr.co/m1zkHVIfIvDzL6a5PfBB/
我无法表达我是多么感激我给你!谢谢你,先生!我爱你! –
不客气! – yurzui