fix: performance

This commit is contained in:
2026-04-24 15:57:18 +02:00
parent f0bf2e20ce
commit cc39abed41
58 changed files with 195 additions and 140 deletions
+12 -5
View File
@@ -1,10 +1,17 @@
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: async () =>
(await import('./home/home.component')).HomeComponent,
pathMatch: 'full',
},
{
path: 'imprint',
loadComponent: async () =>
(await import('./imprint/imprint.component')).ImprintComponent,
pathMatch: 'full',
},
{ path: '**', redirectTo: '' },
];