Last active
January 13, 2021 10:15
-
-
Save onderceylan/5a662edc58c6c5d6d97fee398e72cffc to your computer and use it in GitHub Desktop.
Persistent storage of your store - feature module
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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