0
我想創建RouteConfig動態這樣角2 RouteConfig
for (let route of routes) {
{ path: route.name , component: route.component }
}
不喜歡這樣的:
{ path: '', redirectTo: 'Home', pathMatch: 'full' },
{ path: 'Home', component: HomeComponent},
{ path: 'Info' , component: InfoComponent },
{ path: 'About' , component: AboutComponent },
任何的例子嗎?