Skip to content

Instantly share code, notes, and snippets.

@wesleygrimes
Last active May 31, 2018 15:22
Show Gist options
  • Save wesleygrimes/c56034233725a6e067adf6e907aa55af to your computer and use it in GitHub Desktop.
Save wesleygrimes/c56034233725a6e067adf6e907aa55af to your computer and use it in GitHub Desktop.
Feature Store Module - Module
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