23 lines
662 B
TypeScript
23 lines
662 B
TypeScript
import { NgModule } from '@angular/core';
|
|
import { HttpClientModule } from '@angular/common/http';
|
|
import { StoreModule } from '@ngrx/store';
|
|
import { EffectsModule } from '@ngrx/effects';
|
|
|
|
import { commentsFeatureKey, reducer } from './comment.reducer';
|
|
import { CommentService } from './comment.service';
|
|
import { CommentEffects } from './comment.effects';
|
|
import { CommentFacade } from './comment.facade';
|
|
|
|
@NgModule({
|
|
imports: [
|
|
HttpClientModule,
|
|
StoreModule.forFeature(commentsFeatureKey, reducer),
|
|
EffectsModule.forFeature([CommentEffects])
|
|
],
|
|
providers: [
|
|
CommentService,
|
|
CommentFacade
|
|
]
|
|
})
|
|
export class CommentStoreModule { }
|