no longer preloads
All checks were successful
publish.yml / publish (push) Successful in 59s

This commit is contained in:
2026-04-06 20:36:10 +02:00
parent 3a47b5fcbc
commit 4540f1895d
3 changed files with 14 additions and 47 deletions

View File

@@ -1,11 +1,14 @@
import { Routes } from '@angular/router';
import { AboutComponent } from '../pages/about/about.component';
import { Contact } from '../pages/contact/contact';
import { Home } from '../pages/home/home';
export const routes: Routes = [
{ path: '', redirectTo: 'home', pathMatch: 'full' },
{ path: 'home', component: Home },
{ path: 'about', component: AboutComponent },
{ path: 'contact', component: Contact },
{ path: 'home', loadComponent: () => import('../pages/home/home').then((x) => x.Home) },
{
path: 'about',
loadComponent: () => import('../pages/about/about').then((x) => x.About),
},
{
path: 'contact',
loadComponent: () => import('../pages/contact/contact').then((x) => x.Contact),
},
];