Angular 星云后勤组件
我尝试将NbLoginComponent包含到我的ngx管理项目中。当我尝试导航到页面/auth/login时,找不到auth/login或/login抛出页面。下面是app-routing.module.tsAngular 星云后勤组件,angular,nebular,ngx-admin,Angular,Nebular,Ngx Admin,我尝试将NbLoginComponent包含到我的ngx管理项目中。当我尝试导航到页面/auth/login时,找不到auth/login或/login抛出页面。下面是app-routing.module.ts { path: '', loadChildren: () => import('./pages/pages.module') .then(m => m.PagesModule), }, { path: 'auth',
{
path: '',
loadChildren: () => import('./pages/pages.module')
.then(m => m.PagesModule),
},
{
path: 'auth',
component: NbAuthComponent,
children: [
{
path: '',
component: NbLoginComponent,
},
{
path: 'login',
component: NbLoginComponent,
},
{
path: 'register',
component: NbRegisterComponent,
},
{
path: 'logout',
component: NbLogoutComponent,
},
{
path: 'request-password',
component: NbRequestPasswordComponent,
},
{
path: 'reset-password',
component: NbResetPasswordComponent,
},
],
},
{ path: '', redirectTo: 'auth', pathMatch: 'full' },
{ path: '**', redirectTo: 'pages' },
];
应该有用。
事实上
我正在以同样的方式使用它。
事实上
我也在用同样的方法