import { CommonModule } from '@angular/common' ; import { NgModule , ModuleWithProviders , } from '@angular/core' ; import { DaffOrderDriver } from '@daffodil/order/driver' ; import { DaffOrderMagentoService } from './order.service' ; @ NgModule ( { imports : [ CommonModule , ] , } ) export class DaffOrderMagentoDriverModule { static forRoot ( ) { return { ngModule : DaffOrderMagentoDriverModule , providers : [ { provide : DaffOrderDriver , useExisting : DaffOrderMagentoService , } , ] , } ; } }