mirror of
https://github.com/Raghu-Ch/angular-challenges.git
synced 2026-02-10 12:53:03 -05:00
fix: home route not lazy loaded
This commit is contained in:
@@ -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',
|
||||||
|
|||||||
Reference in New Issue
Block a user