import { CommonModule } from '@angular/common' ; import { ModuleWithProviders , NgModule } from '@angular/core' ; import { ACLIfDirective } from './acl-if.directive' ; import { ACLDirective } from './acl.directive' ; import { ACLService } from './acl.service' ; const COMPONENTS = [ ACLDirective , ACLIfDirective ] ; @ NgModule ( { imports : [ CommonModule ] , declarations : COMPONENTS , exports : COMPONENTS } ) export class DelonACLModule { static forRoot ( ) { return { ngModule : DelonACLModule , providers : [ ACLService ] } ; } }