1
0
This repository has been archived on 2025-11-02. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
comment-system/src/app/store/comment/comment.module.ts

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 { }