mirror of
https://github.com/angular/angular
synced 2026-05-24 09:28:37 +00:00
inject() supports the ngInjectableDef-based configuration of the injector (otherwise known as tree-shakeable services). It was missing from the exported API of @angular/core, this PR adds it. The test added here is correct in theory, but may pass accidentally due to the decorator side-effect replacing the inject() call at runtime. An upcoming compiler PR will strip reified decorators from the output entirely. Fixes #22388 PR Close #22389 |
||
|---|---|---|
| .. | ||
| bazel | ||
| benchmarks | ||
| flat_module | ||
| ngtools_src | ||
| src | ||
| test | ||
| third_party_src | ||
| tsconfig-build.json | ||
| tsconfig-ngc-build.json | ||
| tsconfig-xi18n.json | ||
| webpack.config.js | ||