主要写在模块的 -routing.module.ts 文件里 const routes: Routes = [ ]; routes 就是放路由的。 基本写法 显示页面,例如: home 路径显示 HomeComponent 的内容 const routes: Routes = [ { path: 'home', component: HomeComponent, }, ]; 未匹配到指定 未找到 …
主要写在模块的 -routing.module.ts 文件里 const routes: Routes = [ ]; routes 就是放路由的。 基本写法 显示页面,例如: home 路径显示 HomeComponent 的内容 const routes: Routes = [ { path: 'home', component: HomeComponent, }, ]; 未匹配到指定 未找到 …
讨论
登录后参与讨论
还没有评论,来说第一句吧。