阅读背景:

Angular4 第三章(中) 重定向路由,子路由,辅助路由_橘柚子的博客

来源:互联网 

1.重定向路由配置

const routes:Routes = [
{path:'', redirectTo: '/home', pathMatch:'full'},
{path:'home', component: HomeComponent }, // 默认展示HomeComponnet
{path:'**', component: Code404Component}
];const routes:Routes = [
{path:'



你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: