Last active
May 31, 2018 15:22
-
-
Save wesleygrimes/c56034233725a6e067adf6e907aa55af to your computer and use it in GitHub Desktop.
Feature Store Module - Module
This file contains hidden or 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 { CommonModule } from '@angular/common'; | |
import { NgModule } from '@angular/core'; | |
import { EffectsModule } from '@ngrx/effects'; | |
import { StoreModule } from '@ngrx/store'; | |
import { MyFeatureStoreEffects } from './effects'; | |
import { featureReducer } from './reducer'; | |
@NgModule({ | |
imports: [ | |
CommonModule, | |
StoreModule.forFeature('myFeature', featureReducer), | |
EffectsModule.forFeature([MyFeatureStoreEffects]) | |
], | |
providers: [MyFeatureStoreEffects] | |
}) | |
export class MyFeatureStoreModule {} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment