The lazy directive loads lazy modules and renders lazy components.
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 {}