我试图使用子路由,我误解了一些东西.
两者有什么不同?
{path:'products',component:ProductsComponent,children:[{path:'details/:id',component:ProductDetailsComponent}]}
和
{path:'products',component:ProductsComponent},
{path:'products',children:[{path:'details/:id',component:ProductDetailsComponent}]},
because the first one the url was changed but didn't go to the ProductDetailsComponenton the other h和 the 2nd one working fine the url changed 和 it goes to the ProductDetailsComponent
我试着利用子元素们在17号角的路由.