Skip to content

Instantly share code, notes, and snippets.

@robwormald
Created July 18, 2017 18:09
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 robwormald/84cefe17b8672a39120bdaefce500ee3 to your computer and use it in GitHub Desktop.
Save robwormald/84cefe17b8672a39120bdaefce500ee3 to your computer and use it in GitHub Desktop.
@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