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',