
RoutingModule { path: '/products', component: ProductList, children: [ path: '', component: ProductList, ], }, component: Products {}, 这样配置在页面中就可以通过路由的方式来新增产品或者编辑产品了。如果需要具体的路由配置可以根据实际情况进行调整。`
深圳新闻网
戈玮明
手机查看
RoutingModule { path: '/products', component: ProductList, children: [ path: '', component: ProductList, ], }, component: Products {}, 这样配置在页面中就可以通过路由的方式来新增产品或者编辑产品了。如果需要具体的路由配置可以根据实际情况进行调整。`