angular-docs-cn/packages/compiler-cli/integrationtest
Pete Bacon Darwin 641c671bac 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 https://github.com/angular/ngcc-validation/pull/526

PR Close #33732
2019-11-12 11:54:15 -08:00
..
bazel fix(core): support `ngInjectableDef` on types with inherited `ɵprov` (#33732) 2019-11-12 11:54:15 -08:00
benchmarks refactor: move angular source to /packages rather than modules/@angular 2017-03-08 16:29:27 -08:00
flat_module build: remove vendored Babel typings (#33226) 2019-10-17 18:45:52 -04:00
ngtools_src feat: make the Ivy compiler the default for ngc (#32219) 2019-08-20 16:41:08 -07:00
src fix(core): require 'static' flag on queries in typings (#30639) 2019-05-24 16:55:00 -04:00
test build: reference zone.js from source directly instead of npm. (#33046) 2019-11-06 00:48:34 +00:00
third_party_src build: remove vendored Babel typings (#33226) 2019-10-17 18:45:52 -04:00
BUILD.bazel build: reference zone.js from source directly instead of npm. (#33046) 2019-11-06 00:48:34 +00:00
test.js build: update to nodejs rules 0.37.1 (#32151) 2019-09-25 11:29:12 -07:00
test_helpers.js build: reference zone.js from source directly instead of npm. (#33046) 2019-11-06 00:48:34 +00:00
tsconfig-build.json build: remove vendored Babel typings (#33226) 2019-10-17 18:45:52 -04:00
tsconfig-xi18n.json build: remove vendored Babel typings (#33226) 2019-10-17 18:45:52 -04:00