src/app/manager-dashboard/manager-dashboard-router.module.ts
import { NgModule } from '@angular/core';
import { ManagerDashboardComponent } from './manager-dashboard.component';
import { Routes, RouterModule } from '@angular/router';
import { ManagerSyncComponent } from './manager-sync.component';
import { ManagerFetchComponent } from './manager-fetch.component';
import { ManagerDashboardConfigurationComponent } from './manager-dashboard-configuration.component';
import { ReportsComponent } from './reports/reports.component';
import { ReportsDetailComponent } from './reports/reports-detail.component';
import { ReportsPendingComponent } from './reports/reports-pending.component';
import { ReportsMyPlanetComponent } from './reports/reports-myplanet.component';
import { RequestsComponent } from './requests/requests.component';
const routes: Routes = [
{ path: '', component: ManagerDashboardComponent },
{ path: 'certifications', loadChildren: () => import('./certifications/certifications.module').then(m => m.CertificationsModule) },
{ path: 'sync', component: ManagerSyncComponent },
{ path: 'fetch', component: ManagerFetchComponent },
{ path: 'meetups', loadChildren: () => import('../meetups/meetups.module').then(m => m.MeetupsModule), data: { parent: true } },
{ path: 'courses', loadChildren: () => import('../courses/courses.module').then(m => m.CoursesModule), data: { parent: true } },
{ path: 'surveys', loadChildren: () => import('../surveys/surveys.module').then(m => m.SurveysModule) },
{ path: 'resources', loadChildren: () => import('../resources/resources.module').then(m => m.ResourcesModule), data: { parent: true } },
{ path: 'configuration', component: ManagerDashboardConfigurationComponent, data: { update: true } },
{ path: 'users', loadChildren: () => import('../users/users.module').then(m => m.UsersModule) },
{ path: 'reports', component: ReportsComponent },
{ path: 'reports/detail', component: ReportsDetailComponent },
{ path: 'reports/pending', component: ReportsPendingComponent },
{ path: 'reports/myplanet', component: ReportsMyPlanetComponent },
{ path: 'requests', component: RequestsComponent }
];
@NgModule({
imports: [ RouterModule.forChild(routes) ],
exports: [ RouterModule ]
})
export class ManagerDashboardRouterModule {}