
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 https://github.com/angular/ngcc-validation/pull/526 PR Close #33732
Angular
Angular is a development platform for building mobile and desktop web applications using TypeScript/JavaScript and other languages.
Quickstart
Changelog
Learn about the latest improvements.
Want to help?
Want to file a bug, contribute some code, or improve documentation? Excellent! Read up on our guidelines for contributing and then check out one of our issues in the hotlist: community-help.
Description
Languages
TypeScript
86.3%
JavaScript
8.5%
HTML
1.8%
Starlark
1.7%
CSS
1%
Other
0.6%