設了一個children路徑
const routes: Routes = [
{
path: "check-transacton",
component: CheckTransactonSearchComponent,
children: [
{ path: "detail", component: CheckTransactonDetailComponent },
],
},
]
路徑如果輸入
http://localhost:4200/check-transacton/detail
路徑會維持原樣,
但畫面會停留在--
"check-transacton"的component,
不會顯示子路徑
"detail"的component.
請問是..哪裡出問題了嗎....?