dependencies Legend  Declarations  Module  Bootstrap  Providers  Exports cluster_FormatPriceModule cluster_FormatPriceModule_declarations cluster_FormatPriceModule_exports FormatPriceDirective FormatPriceDirective FormatPriceModule FormatPriceModule FormatPriceDirective->FormatPriceModule FormatPriceDirective FormatPriceDirective FormatPriceModule->FormatPriceDirective

File

projects/maplander/components/src/lib/directives/format-price/format-price.module.ts

Methods

Static forChild
forChild()
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
      ]
    };
  }
}

result-matching ""

    No results matching ""