import { CommonModule } from '@angular/common' ; import { NgModule , ModuleWithProviders , } from '@angular/core' ; import { DaffProductDriver } from '@daffodil/product/driver' ; import { DaffProductTestingModule } from '@daffodil/product/testing' ; import { DaffInMemoryProductService } from './product.service' ; /**
 * Module for providing the DaffInMemoryProductService driver to your application.
 */ @ NgModule ( { imports : [ CommonModule , DaffProductTestingModule , ] , } ) export class DaffProductInMemoryDriverModule { static forRoot ( ) { return { ngModule : DaffProductInMemoryDriverModule , providers : [ { provide : DaffProductDriver , useExisting : DaffInMemoryProductService , } , ] , } ; } }