Angular4 第三章(中) 重定向路由,子路由,輔助路由

1.重定向路由配置 const routes:Routes = [ {path:'', redirectTo: '/home', pathMatch:'full'}, {path:'home', component: HomeComponent }, // 默認展現HomeComponnet {path:'**', component: Code404Component} ]; pathMatch
相關文章
相關標籤/搜索