import { NgModule , ModuleWithProviders } from '@angular/core' ; import { CommonModule } from '@angular/common' ; import { EllipsisComponent } from './ellipsis.component' ; const COMPONENTS = [ EllipsisComponent ] ; const ZORROMODULES = [ ] ; @ NgModule ( { imports : [ CommonModule , ... ZORROMODULES ] , declarations : [ ... COMPONENTS ] , exports : [ ... COMPONENTS ] } ) export class AdEllipsisModule { static forRoot ( ) { return { ngModule : AdEllipsisModule , providers : [ ] } ; } }