import { NgModule , ModuleWithProviders } from '@angular/core' ; import { CommonModule } from '@angular/common' ; import { DescListComponent } from './desc-list.component' ; import { DescListItemComponent } from './desc-list-item.component' ; const COMPONENTS = [ DescListComponent , DescListItemComponent ] ; import { NzGridModule } from 'ng-zorro-antd' ; const ZORROMODULES = [ NzGridModule ] ; @ NgModule ( { imports : [ CommonModule , ... ZORROMODULES ] , declarations : [ ... COMPONENTS ] , exports : [ ... COMPONENTS ] } ) export class AdDescListModule { static forRoot ( ) { return { ngModule : AdDescListModule , providers : [ ] } ; } }