Support for loading, deleting, tag joining, and
This commit is contained in:
22
src/app/store/comment/comment.module.ts
Normal file
22
src/app/store/comment/comment.module.ts
Normal file
@@ -0,0 +1,22 @@
|
||||
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 { }
|
||||
Reference in New Issue
Block a user