refactor(routes): change home route to lazy loading #37

Merged
jleibl merged 2 commits from task/lazy-load-homepage into main 2025-02-19 11:55:13 +00:00
Showing only changes of commit 840d6b5bfd - Show all commits

View File

@ -1,6 +1,5 @@
import { Routes } from '@angular/router';
import { LandingComponent } from './feature/landing/landing.component';
import { HomeComponent } from './feature/home/home.component';
import { authGuard } from './auth.guard';
export const routes: Routes = [
@ -10,7 +9,7 @@ export const routes: Routes = [
},
{
path: 'home',
component: HomeComponent,
loadComponent: () => import('./feature/home/home.component'),
canActivate: [authGuard],
},
];