import { NgModule , ModuleWithProviders } from '@angular/core' ; import { CommonModule } from '@angular/common' ; import { NumberToChinesePipe } from './number-to-chinese.pipe' ; const PIPES = [ NumberToChinesePipe ] ; @ NgModule ( { imports : [ CommonModule ] , declarations : PIPES , exports : PIPES } ) export class AdNumberToChineseModule { static forRoot ( ) { return { ngModule : AdNumberToChineseModule , providers : [ ] } ; } }