import { Injectable } from '@angular/core' ; import { HttpClient } from '@angular/common/http' ; import { State } from '@progress/kendo-data-query' ; import { DataProviderService } from './service-config' ; import { DataService } from './data.service' ; import { ProgressService } from './progress.service' ; import { ProgressServiceConfig } from './progress-service-config' ; import { ProgressSessionService } from './progress-session.service' ; @ Injectable ( ) export class ProgressServiceFactory { constructor ( protected http , protected dataProviderService , protected sessionService ) { } public getService < T > ( config , state ? ) { return new ProgressService < T > ( config , this . http , this . dataProviderService , this . sessionService , state ) ; } }