Lazy
The lazy directive loads lazy modules and renders lazy components.
Create Lazy Module
Create a lazy module and component in the src/app/view/lazy/lazy.module.ts file.
import { NgxfModule } from '@ngxf/platform';
@Component({
selector: 'app-lazy',
template: 'Hello, NGX Features!'
})
export class LazyComponent {}
@NgModule({
imports: [ NgxfModule.forLazy(LazyComponent) ],
declarations: [ LazyComponent ]
})
export class LazyModule {}