0
在URL中設置一些應該看起來像mypage/param1/1/param2/2的嵌套路由。 1是第一個參數,2是第二個參數。應始終有兩個參數,否則應該有錯誤。這還不適合我。我在正確的軌道上嗎?在Angular 2路由器中設置嵌套/子路由
{
path: 'param1/:param1',
component: PageNotFoundComponent,
children: [
{ path: 'param2/:param2', component: SomeComponent },
]
}