import { NgModule , ModuleWithProviders } from '@angular/core' ; import { CommonModule } from '@angular/common' ; import { NumberInfoComponent } from './number-info.component' ; const COMPONENTS = [ NumberInfoComponent ] ; import { NzIconModule } from 'ng-zorro-antd-extra' ; const ZORROMODULES = [ NzIconModule ] ; @ NgModule ( { imports : [ CommonModule , ... ZORROMODULES ] , declarations : [ ... COMPONENTS ] , exports : [ ... COMPONENTS ] } ) export class AdNumberInfoModule { static forRoot ( ) { return { ngModule : AdNumberInfoModule , providers : [ ] } ; } }