Commit 0b7c8196 by Muhammad Usman

lazy routing enabled for my-career-web

parent d456586a
......@@ -14,16 +14,12 @@ const routes: Routes = [
children: [
{
path: 'auth',
// @ts-ignore
// tslint:disable-next-line:newline-per-chained-call
loadChildren: () => import('./auth/auth.module').then(() => AuthModule),
loadChildren: './auth/auth.module#AuthModule',
canActivate: [PublicGuard]
},
{
path: 'dashboard',
// @ts-ignore
// tslint:disable-next-line:newline-per-chained-call
loadChildren: () => import('./dashboard/dashboard.module').then(() => DashboardModule),
loadChildren: './dashboard/dashboard.module#DashboardModule',
canActivate: [HomeGuard]
},
{path: '', component: WelcomeComponent, canActivate: [PublicGuard]}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment