42 lines
1.0 KiB
TypeScript
42 lines
1.0 KiB
TypeScript
import { DatePipe } from '@angular/common';
|
|
import { NgModule } from '@angular/core';
|
|
import { DateFormatPipe } from './pipes/date-format.pipe';
|
|
import { DateTimeFormatPipe } from './pipes/date-time-format.pipe';
|
|
import { NgForLimitPipe } from './pipes/ng-for-limit.pipe';
|
|
import { TimezoneInfoDisplayPipe } from './pipes/timezone-info-display.pipe';
|
|
import { EnumUtils } from './services/utilities/enum-utils.service';
|
|
import { JsonParserPipe } from './pipes/json-parser.pipe';
|
|
|
|
//
|
|
//
|
|
// This is shared module that provides all formatting utils. Its imported only once on the AppModule.
|
|
//
|
|
//
|
|
|
|
@NgModule({
|
|
declarations: [
|
|
NgForLimitPipe,
|
|
TimezoneInfoDisplayPipe,
|
|
DateFormatPipe,
|
|
DateTimeFormatPipe,
|
|
JsonParserPipe
|
|
],
|
|
exports: [
|
|
NgForLimitPipe,
|
|
TimezoneInfoDisplayPipe,
|
|
DateFormatPipe,
|
|
DateTimeFormatPipe,
|
|
JsonParserPipe
|
|
],
|
|
providers: [
|
|
EnumUtils,
|
|
DatePipe,
|
|
NgForLimitPipe,
|
|
TimezoneInfoDisplayPipe,
|
|
DateFormatPipe,
|
|
DateTimeFormatPipe,
|
|
JsonParserPipe
|
|
]
|
|
})
|
|
export class FormattingModule { }
|