-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcomments.module.ts
More file actions
33 lines (31 loc) · 944 Bytes
/
comments.module.ts
File metadata and controls
33 lines (31 loc) · 944 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { CommentsComponent } from './comments.component';
import { CommentBoxComponent } from './comment-box/comment-box.component';
import { CommentService } from './services/comment.service';
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
import { CdkModule } from 'src/app/shared/cdk/cdk.module';
import { RouterModule, Routes } from '@angular/router';
import { ObscenityModule } from 'src/app/pipes/obscenity.module';
const routes: Routes = [{ path: '', component: CommentsComponent }];
@NgModule({
declarations: [
CommentsComponent,
CommentBoxComponent
],
imports: [
CommonModule,
RouterModule.forChild(routes),
FormsModule,
ReactiveFormsModule,
CdkModule,
ObscenityModule
],
providers:[
CommentService
],
exports:[
CommentsComponent
]
})
export class CommentsModule { }