application/src/app/lazy/lazy.module.ts
import { NgModule } from '@angular/core';
import { RouterModule } from '@angular/router';
import { LazyComponent } from './lazy.component';
@NgModule({
declarations: [LazyComponent],
imports: [
RouterModule.forChild([
{ path: '', component: LazyComponent, pathMatch: 'full'}
])
]
})
export class LazyModule {}