From 7a7edb3a395e90c7a0f6801385054381b37fc69a Mon Sep 17 00:00:00 2001 From: jdegand <70610011+jdegand@users.noreply.github.com> Date: Tue, 2 Jan 2024 19:59:23 -0500 Subject: [PATCH] fix: home route not lazy loaded --- apps/ngrx/notification/src/app/routes.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/ngrx/notification/src/app/routes.ts b/apps/ngrx/notification/src/app/routes.ts index f84b13e..7db44a4 100644 --- a/apps/ngrx/notification/src/app/routes.ts +++ b/apps/ngrx/notification/src/app/routes.ts @@ -1,11 +1,11 @@ import { Route } from '@angular/router'; +import { TeacherComponent } from './teacher/teacher.component'; export const ROUTES: Route[] = [ { path: '', pathMatch: 'full', redirectTo: 'teacher' }, { path: 'teacher', - loadComponent: () => - import('./teacher/teacher.component').then((m) => m.TeacherComponent), + component: TeacherComponent, }, { path: 'student',