fix: home route not lazy loaded

This commit is contained in:
jdegand
2024-01-02 19:59:23 -05:00
parent 6cc084fb78
commit 7a7edb3a39

View File

@@ -1,11 +1,11 @@
import { Route } from '@angular/router'; import { Route } from '@angular/router';
import { TeacherComponent } from './teacher/teacher.component';
export const ROUTES: Route[] = [ export const ROUTES: Route[] = [
{ path: '', pathMatch: 'full', redirectTo: 'teacher' }, { path: '', pathMatch: 'full', redirectTo: 'teacher' },
{ {
path: 'teacher', path: 'teacher',
loadComponent: () => component: TeacherComponent,
import('./teacher/teacher.component').then((m) => m.TeacherComponent),
}, },
{ {
path: 'student', path: 'student',