Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
@NgModule({
imports: [
StoreModule.forRoot(appReducers),
EffectsModule.forRoot([SourceA, SourceB]),
RouterModule.forRoot([
{ path: ‘lazy’, loadModule: ./lazy.module#LazyModule’ }
])
]
})
export class AppModule { }
@NgModule({
imports: [
StoreModule.forFeature(‘lazy’, lazyReducers),
EffectsModule.forFeature([SourceC]),
RouterModule.forChild(childRoutes)
]
})
export class LazyModule { }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment