projects/maplander/components/src/lib/pipes/format-date/format-date.module.ts
Static forChild |
forChild()
|
Returns :
ModuleWithProviders
|
import {ModuleWithProviders, NgModule} from '@angular/core';
import {CommonModule} from '@angular/common';
import {FormatDatePipe} from './format-date.pipe';
@NgModule({
imports: [
CommonModule
],
declarations: [
FormatDatePipe
],
exports: [
FormatDatePipe
]
})
export class FormatDateModule {
static forChild(): ModuleWithProviders {
return {
ngModule: FormatDateModule,
providers: [
FormatDatePipe
]
};
}
}