libs/newsletter/state/src/newsletter-state.module.ts
import { CommonModule } from '@angular/common';
import { NgModule } from '@angular/core';
import { EffectsModule } from '@ngrx/effects';
import { StoreModule } from '@ngrx/store';
import { DaffNewsletterEffects } from './effects/newsletter.effects';
import { DAFF_NEWSLETTER_STORE_FEATURE_KEY } from './reducers/newsletter-store-feature-key';
import { reducer } from './reducers/newsletter.reducer';
@NgModule({
imports: [
CommonModule,
StoreModule.forFeature(DAFF_NEWSLETTER_STORE_FEATURE_KEY, reducer),
EffectsModule.forFeature([
DaffNewsletterEffects,
]),
],
})
export class DaffNewsletterStateModule { }