import { NgModule } from '@angular/core'; import { CommonModule } from '@angular/common'; import { FormsModule } from '@angular/forms'; import { Ng2PaginationModule } from 'ng2-pagination'; import { CommentComponent } from './comment.component'; import { CommentFormComponent } from './comment-form.component'; import { CommentListingComponent } from './comment-listing.component'; import { CommentService } from './comment.service'; import { MomentAgoPipe } from './moment-ago.pipe'; import { InWordPipe } from './in-word.pipe'; import { ToStrPipe } from './to-str.pipe'; import { MathCaptchaComponent } from './math-captcha.component'; @NgModule({ imports: [ CommonModule, FormsModule, Ng2PaginationModule ], declarations: [ CommentComponent, CommentFormComponent, CommentListingComponent, MomentAgoPipe, InWordPipe, ToStrPipe, MathCaptchaComponent ], exports: [ CommentComponent ], providers: [ CommentService ] }) export class CommentModule {}