From f0f07b4719f8be1e90fa8e9fd5833dcef607b68d Mon Sep 17 00:00:00 2001 From: Tim Kainz Date: Mon, 13 Apr 2026 21:35:31 +0200 Subject: [PATCH] change to preloaded components --- src/app/app.routes.ts | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/src/app/app.routes.ts b/src/app/app.routes.ts index dd144ec..dab2150 100644 --- a/src/app/app.routes.ts +++ b/src/app/app.routes.ts @@ -1,14 +1,11 @@ import { Routes } from '@angular/router'; +import { Home } from '../pages/home/home'; +import { About } from '../pages/about/about'; +import { Contact } from '../pages/contact/contact'; export const routes: Routes = [ { path: '', redirectTo: 'home', pathMatch: 'full' }, - { 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), - }, + { path: 'home', component: Home }, + { path: 'about', component: About }, + { path: 'contact', component: Contact }, ];