projects/maplander/components/src/lib/directives/format-price/format-price.module.ts
Static forChild |
forChild()
|
Returns :
ModuleWithProviders
|
import {ModuleWithProviders, NgModule} from '@angular/core';
import {CommonModule, CurrencyPipe} from '@angular/common';
import {FormatPriceDirective} from './format-price.directive';
@NgModule({
imports: [
CommonModule
],
declarations: [
FormatPriceDirective
],
exports: [
FormatPriceDirective
]
})
export class FormatPriceModule {
static forChild(): ModuleWithProviders {
return {
ngModule: FormatPriceModule,
providers: [
CurrencyPipe,
FormatPriceDirective
]
};
}
}