Please sign in to comment.
fix(core): support `ngInjectableDef` on types with inherited `ɵprov` (#…
…33732) The `ngInjectableDef` property was renamed to `ɵprov`, but core must still support both because there are published libraries that use the older term. We are only interested in such properties that are defined directly on the type being injected, not on base classes. So there is a check that the defintion is specifically for the given type. Previously if you tried to inject a class that had `ngInjectableDef` but also inherited `ɵprov` then the check would fail on the `ɵprov` property and never even try the `ngInjectableDef` property resulting in a failed injection. This commit fixes this by attempting to find each of the properties independently. Fixes angular/ngcc-validation#526 PR Close #33732
- Loading branch information
Showing with 48 additions and 8 deletions.