fix: performance

This commit is contained in:
2026-04-28 19:05:22 +02:00
parent c6eb4fd452
commit 07000e539c
7 changed files with 253 additions and 20 deletions
+11 -5
View File
@@ -1,10 +1,16 @@
import type { Routes } from '@angular/router';
import { HomeComponent } from './home/home.component';
import { ImprintComponent } from './imprint/imprint.component';
export const routes: Routes = [
{ path: '', component: HomeComponent, pathMatch: 'full' },
{ path: 'imprint', component: ImprintComponent, pathMatch: 'full' },
{
path: '',
loadComponent: () => import('./home/home.component').then((module) => module.HomeComponent),
pathMatch: 'full',
},
{
path: 'imprint',
loadComponent: () =>
import('./imprint/imprint.component').then((module) => module.ImprintComponent),
pathMatch: 'full',
},
{ path: '**', redirectTo: '' },
];