美文网首页
Angular笔记7(知识点)

Angular笔记7(知识点)

作者: 刚刚8888 | 来源:发表于2020-06-08 09:46 被阅读0次
  1. 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'
            }
        ]
    }
];

相关文章

网友评论

      本文标题:Angular笔记7(知识点)

      本文链接:https://www.haomeiwen.com/subject/ymcraqtx.html