+5
-12
@@ -1,17 +1,10 @@
|
||||
import type { Routes } from '@angular/router';
|
||||
|
||||
import { HomeComponent } from './home/home.component';
|
||||
import { ImprintComponent } from './imprint/imprint.component';
|
||||
|
||||
export const routes: Routes = [
|
||||
{
|
||||
path: '',
|
||||
loadComponent: async () =>
|
||||
(await import('./home/home.component')).HomeComponent,
|
||||
pathMatch: 'full',
|
||||
},
|
||||
{
|
||||
path: 'imprint',
|
||||
loadComponent: async () =>
|
||||
(await import('./imprint/imprint.component')).ImprintComponent,
|
||||
pathMatch: 'full',
|
||||
},
|
||||
{ path: '', component: HomeComponent, pathMatch: 'full' },
|
||||
{ path: 'imprint', component: ImprintComponent, pathMatch: 'full' },
|
||||
{ path: '**', redirectTo: '' },
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user