import { ChangeDetectorRef , ComponentFactoryResolver , Inject , Injectable , KeyValueDiffers , } from '@angular/core' ; import { EventArgumentToken } from './event-argument' ; import { IoService } from './io.service' ; @ Injectable ( ) export class IoFactoryService { constructor ( private differs , private cfr , @ Inject ( EventArgumentToken ) private eventArgument , private cdr ) { } create ( ) { return new IoService ( this . differs , this . cfr , this . eventArgument , this . cdr ) ; } }