Skip to content

Instantly share code, notes, and snippets.

@onderceylan
Last active January 13, 2021 10:15
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 onderceylan/5a662edc58c6c5d6d97fee398e72cffc to your computer and use it in GitHub Desktop.
Save onderceylan/5a662edc58c6c5d6d97fee398e72cffc to your computer and use it in GitHub Desktop.
Persistent storage of your store - feature module
import { NgModule } from '@angular/core';
import { StoreModule } from '@ngrx/store';
import { EffectsModule } from '@ngrx/effects';
import * as fromFeature from './store';
@NgModule({
imports: [
StoreModule.forFeature(fromFeature.FEATURE_NAME, fromFeature.reducers, {
metaReducers: fromFeature.metaReducers,
}),
EffectsModule.forFeature(fromFeature.effects),
],
})
export class SettingsModule {}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment