【发布时间】:2019-01-20 07:42:29
【问题描述】:
我使用 angular 6,对于应用程序的 cms,我在 app.modules.ts 文件中设置了以下路径。
{ path: 'cms', component: CmsComponentComponent, children: [
{ path: 'register', component: RegisterComponent },
{ path: 'login', component: LoginComponent },
{ path: 'profile', component: ProfileComponent, canActivate:[AuthGuard] },
{ path: 'educate', component: EducateComponent, canActivate:[AuthGuard] }
]},
我想要一个默认的cms,所以如果我输入app/cms,我就必须注册。
我该怎么做?
谢谢
【问题讨论】:
标签: angular angular6 angular-routing