摘要: **文中使用的工具或者包的版本:**Angular CLI 11.0.6 **文中 Demo 链接:**https://stackblitz.com/edit/angular-route-outlet-3crvst 配置 首先我们在模板中定义多个路由出口,比如: <router-outlet></r 阅读全文
posted @ 2021-04-18 22:40 文燚 阅读(426) 评论(0) 推荐(0) 编辑
摘要: **文中使用的工具或者包的版本:**Angular CLI 11.0.6 **文中 Demo 链接:**https://stackblitz.com/edit/angular-route-params-xuspvu 一、路径参数 配置 { path: 'route1/:id', component: 阅读全文
posted @ 2021-04-18 22:39 文燚 阅读(646) 评论(0) 推荐(0) 编辑