我有以下的路由配置,但我得到的錯誤Invalid configuration of route 'tenant': redirectTo and children cannot be used together
角重定向到默認子視圖
一次,我已經點擊/房客我想以某種方式顯示兩個租戶,然後審覈內容是什麼?這可能嗎 ?我的租客URL看起來像下面http://localhost:8080/#/tenant
{
path: 'tenant',
redirectTo: '/tenant/(view:audit)',
pathMatch: 'full',
component: TenantComponent,
data: {
authorities: ['ROLE_USER', 'ROLE_ADMIN'],
pageTitle: 'tenant.home.title'
},
children: [
{
path: 'audit',
component: PacketDataComponent,
data: {
authorities: ['ROLE_USER', 'ROLE_ADMIN'],
pageTitle: 'tenant.home.title'
},
}
]
}
你是最棒的 –
@Alimohammadi謝謝,不客氣兄弟:) –