Top "Angular-di" questions

"this.appInits[i]" is not a function

I am trying to use APP_INITIALIZER TO load data from config file. I'm getting following error: "Unhandled Promise rejection: …

angular typescript angular-di
useClass vs useExisting

When should we use useExisting provider instead of useClass? providers: [ {provide: Class1, useClass: Class1}, {provide: Class2, useExisting: Class2}] REMARK: I …

angular dependency-injection angular-di
How to update dependency injection token value

Angular dependency injection let you inject a string, function, or object using a token instead of a service class. I …

angular typescript angular-services angular-decorator angular-di