48 lines
1.3 KiB
TypeScript
48 lines
1.3 KiB
TypeScript
|
import { NgModule } from '@angular/core';
|
||
|
import { ArrayToStringPipe } from '@common/formatting/pipes/array-to-string.pipe';
|
||
|
import { DataTableDateFormatPipe, DateFormatPipe } from '@common/formatting/pipes/date-format.pipe';
|
||
|
import { DataTableDateOnlyFormatPipe, DateOnlyPipe } from '@common/formatting/pipes/date-only-format.pipe';
|
||
|
import { DataTableDateTimeFormatPipe, DateTimeFormatPipe } from '@common/formatting/pipes/date-time-format.pipe';
|
||
|
import { LowercaseFirstLetterPipe } from '@common/formatting/pipes/lowercase-first-letter.pipe';
|
||
|
|
||
|
//
|
||
|
//
|
||
|
// This is shared module that provides all formatting utils. Its imported only once on the AppModule.
|
||
|
//
|
||
|
//
|
||
|
@NgModule({
|
||
|
declarations: [
|
||
|
DateFormatPipe,
|
||
|
DateTimeFormatPipe,
|
||
|
DataTableDateFormatPipe,
|
||
|
DataTableDateTimeFormatPipe,
|
||
|
LowercaseFirstLetterPipe,
|
||
|
ArrayToStringPipe,
|
||
|
DateOnlyPipe,
|
||
|
DataTableDateOnlyFormatPipe,
|
||
|
|
||
|
|
||
|
],
|
||
|
exports: [
|
||
|
DateFormatPipe,
|
||
|
DateTimeFormatPipe,
|
||
|
DataTableDateFormatPipe,
|
||
|
DataTableDateTimeFormatPipe,
|
||
|
LowercaseFirstLetterPipe,
|
||
|
ArrayToStringPipe,
|
||
|
DateOnlyPipe,
|
||
|
DataTableDateOnlyFormatPipe,
|
||
|
],
|
||
|
providers: [
|
||
|
DateFormatPipe,
|
||
|
DateTimeFormatPipe,
|
||
|
DataTableDateFormatPipe,
|
||
|
DataTableDateTimeFormatPipe,
|
||
|
LowercaseFirstLetterPipe,
|
||
|
ArrayToStringPipe,
|
||
|
DateOnlyPipe,
|
||
|
DataTableDateOnlyFormatPipe,
|
||
|
]
|
||
|
})
|
||
|
export class CommonFormattingModule { }
|