src/app/payments/payments.module.ts
import { CommonModule, DatePipe } from '@angular/common';
import { NgModule } from '@angular/core';
import { FormsModule } from '@angular/forms';
import { RouterModule } from '@angular/router';
import { LoaderModule } from '../loader/loader.module';
import { PaymentDetailComponent } from './payment-detail';
import { PaymentListComponent } from './payment-list';
import { PaymentCreateComponent } from './payment-create/payment-create.component';
import { SharedModule } from '../shared.module';
@NgModule({
imports: [CommonModule, RouterModule, FormsModule, SharedModule, LoaderModule],
declarations: [PaymentDetailComponent, PaymentListComponent, PaymentCreateComponent],
exports: [PaymentDetailComponent, PaymentListComponent, PaymentCreateComponent],
providers: [DatePipe]
})
export class PaymentsModule {}