- pathMatch :路由重定向
prefix:前缀匹配
full:全部匹配
export const dashboardRoutes: Routes = [
{
path: '',
component: DashboardComponent,
children: [
{
path: '',
redirectTo: 'XX',
pathMatch: 'full'
},
{
path: 'XX',
loadChildren: './dashboard-XX/dashboard-XX.module#DashboardXXModule'
}
]
}
];
网友评论