36 lines
1.1 KiB
TypeScript
36 lines
1.1 KiB
TypeScript
import { NgModule } from '@angular/core';
|
|
import { RouterModule, Routes } from '@angular/router';
|
|
|
|
import { HomeComponent } from './core/components/home/home.component';
|
|
import { LoginComponent } from './core/components/login/login.component';
|
|
import { PageNotFoundComponent } from './shared/components/page-not-found/page-not-found.component';
|
|
|
|
const routes: Routes = [
|
|
{ path: '', component: HomeComponent },
|
|
{ path: 'login', component: LoginComponent },
|
|
{
|
|
path: 'administration',
|
|
loadChildren: () =>
|
|
import('./features/administration/administration.module').then((m) => m.AdministrationModule),
|
|
},
|
|
{
|
|
path: 'participation',
|
|
loadChildren: () => import('./features/participation/participation.module').then((m) => m.ParticipationModule),
|
|
},
|
|
{
|
|
path: 'oldstuff',
|
|
loadChildren: () => import('./features/old-stuff/old-stuff.module').then((m) => m.OldStuffModule),
|
|
},
|
|
{ path: '**', component: PageNotFoundComponent },
|
|
];
|
|
|
|
@NgModule({
|
|
imports: [
|
|
RouterModule.forRoot(routes, {
|
|
// enableTracing: true, // <-- debugging purposes only
|
|
}),
|
|
],
|
|
exports: [RouterModule],
|
|
})
|
|
export class AppRoutingModule {}
|