Top "Angular-dependency-injection" questions

Use this tag if your question is specially about the behavior of the angular dependency injection framework.

This constructor is not compatible with Angular Dependency Injection because its dependency at index 0 of the parameter list is invalid

In my Angular 9 app, I have an abstract class: export abstract class MyAbstractComponent { constructor( protected readonly cd: ChangeDetectorRef, ) { super(); } // ... } and …

angular typescript angular-test angular-ivy angular-dependency-injection
Angular: Metadata collected contains an error that will be reported at runtime: Lambda not supported

In my Angular app, I'm trying to use a factory provider in my module: export function getMyFactory(): () => Window { return () =&…

angular typescript angular-providers angular-factory angular-dependency-injection