funky-framadate-front/src/app/app-routing.module.ts

38 lines
1.1 KiB
TypeScript
Raw Normal View History

import { NgModule } from '@angular/core';
import { RouterModule, Routes } from '@angular/router';
2020-05-01 19:10:17 +02:00
import { HomeComponent } from './core/components/home/home.component';
import { PageNotFoundComponent } from './shared/components/page-not-found/page-not-found.component';
const routes: Routes = [
2020-05-01 19:10:17 +02:00
{ path: '', component: HomeComponent },
2020-04-22 12:56:18 +02:00
{
path: 'administration',
loadChildren: () =>
import('./features/administration/administration.module').then((m) => m.AdministrationModule),
},
2020-05-12 19:16:23 +02:00
{
path: 'consultation',
loadChildren: () => import('./features/consultation/consultation.module').then((m) => m.ConsultationModule),
},
2020-04-22 12:56:18 +02:00
{
path: 'participation',
loadChildren: () => import('./features/participation/participation.module').then((m) => m.ParticipationModule),
},
2020-05-01 19:10:17 +02:00
{
path: 'oldstuff',
loadChildren: () => import('./features/old-stuff/old-stuff.module').then((m) => m.OldStuffModule),
},
2020-04-22 12:56:18 +02:00
{ path: '**', component: PageNotFoundComponent },
];
@NgModule({
2020-05-01 19:10:17 +02:00
imports: [
RouterModule.forRoot(routes, {
// enableTracing: true, // <-- debugging purposes only
}),
],
2020-04-17 15:52:09 +02:00
exports: [RouterModule],
})
export class AppRoutingModule {}