在我的模块中,我想插入多个提供程序。但是在添加APP_INITIALIZER服务=
时我丢失了窗口提供程序tcp://mycluster.region.cloudapp.azure.com:19000
有没有办法做到这一点?
...以便我的组件可以加载其窗口位置=
providers: [
AlertService,
ConfigurationService,
LocalStoreManager,
EndpointFactory,
BaseComponent,
BaseService,
{ provide: APP_INITIALIZER, useFactory: app_Init, deps:[BaseService], useClass:BaseService, multi:true },
{ provide: 'Window', useValue: window, useClass:window, multi:true }
],