src/app/resources/resources-routing.module.ts
import { NgModule } from '@angular/core';
import { RouterModule, Routes } from '@angular/router';
import { RouterLinks } from '../app.constant';
import { ResourcesComponent } from './resources.component';
const routes: Routes = [
{ path: '', component: ResourcesComponent, },
{ path: 'relevant-contents', loadChildren: './relevant-contents/relevant-contents.module#RelevantContentsPageModule' }
];
@NgModule({
imports: [
RouterModule.forChild(routes)
],
exports: [RouterModule]
})
export class ResourcesRoutingModule { }