Commit 0b7c8196 by Muhammad Usman

lazy routing enabled for my-career-web

parent d456586a
...@@ -14,16 +14,12 @@ const routes: Routes = [ ...@@ -14,16 +14,12 @@ const routes: Routes = [
children: [ children: [
{ {
path: 'auth', path: 'auth',
// @ts-ignore loadChildren: './auth/auth.module#AuthModule',
// tslint:disable-next-line:newline-per-chained-call
loadChildren: () => import('./auth/auth.module').then(() => AuthModule),
canActivate: [PublicGuard] canActivate: [PublicGuard]
}, },
{ {
path: 'dashboard', path: 'dashboard',
// @ts-ignore loadChildren: './dashboard/dashboard.module#DashboardModule',
// tslint:disable-next-line:newline-per-chained-call
loadChildren: () => import('./dashboard/dashboard.module').then(() => DashboardModule),
canActivate: [HomeGuard] canActivate: [HomeGuard]
}, },
{path: '', component: WelcomeComponent, canActivate: [PublicGuard]} {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