import { Routes, RouterModule } from '@angular/router'; import { Pages } from './pages.component'; const routes: Routes = [ { path: 'login', loadChildren: () => System.import('./login/login.module') }, { path: 'pages', component: Pages, children: [ { path: '', redirectTo: 'housing', pathMatch: 'full' }, { path: 'housing', loadChildren: () => System.import('./housing/housing.module') }, { path: 'mayorService', loadChildren: () => System.import('./mayorService/mayorService.module') }, { path: 'digging', loadChildren: () => System.import('./digging/digging.module.ts') }, { path: 'heating', loadChildren: () => System.import('./heating/heating.module.ts') }, { path: 'ambulance', loadChildren: () => System.import('./ambulance/ambulance.module.ts') }, { path: 'gvp', loadChildren: () => System.import('./gvp/gvp.module.ts') }, { path: 'onlineBudget', loadChildren: () => System.import('./onlineBudget/onlineBudget.module') } ] } ]; export const routing = RouterModule.forChild(routes);