Skip to content

Instantly share code, notes, and snippets.

@rahulsahay19
Created May 29, 2019 18:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rahulsahay19/87e900cd142cc9686af5ad1973858e26 to your computer and use it in GitHub Desktop.
Save rahulsahay19/87e900cd142cc9686af5ad1973858e26 to your computer and use it in GitHub Desktop.
CustomModule
import { NgModule } from '@angular/core';
import { RouterModule } from '@angular/router';
@NgModule({
imports: [
RouterModule.forChild([{
path: '',
loadChildren: () => import('./lazy/lazy.module').then(m => m.LazyModule)
}])
]
})
export class CustomModule { }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment