Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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