angular-docs-cn/packages
crisbeto 835618c678 fix(ivy): error when accessing NgModuleRef.componentFactoryResolver in constructor (#35637)
Currently we resolve the `NgModuleRef.componentFactoryResolver` by going through the injector, but the problem is that `ComponentFactoryResolver` has a dependency on `NgModuleRef`, which means that if the module that's attached to the ref tries to inject  `ComponentFactoryResolver` in its constructor, we'll create a circular dependency which throws at runtime.

These changes resolve the issue by creating the `ComponentFactoryResolver` manually ahead of time without going through the injector. We can do this safely, because the only dependency for the resolver is the current module ref which is providing it.

Aside from fixing the issue, another advantage to this approach is that it should reduce the amount of generated JS, because it removes a getter and a provider definitio.

Fixes #35580.

PR Close #35637
2020-02-25 13:19:13 -08:00
..
animations build(packaging): add repository.directory field to package.jsons (#27544) 2020-02-25 13:12:45 -08:00
bazel build(packaging): add repository.directory field to package.jsons (#27544) 2020-02-25 13:12:45 -08:00
benchpress build(packaging): add repository.directory field to package.jsons (#27544) 2020-02-25 13:12:45 -08:00
common build(packaging): add repository.directory field to package.jsons (#27544) 2020-02-25 13:12:45 -08:00
compiler build(packaging): add repository.directory field to package.jsons (#27544) 2020-02-25 13:12:45 -08:00
compiler-cli build(packaging): add repository.directory field to package.jsons (#27544) 2020-02-25 13:12:45 -08:00
core fix(ivy): error when accessing NgModuleRef.componentFactoryResolver in constructor (#35637) 2020-02-25 13:19:13 -08:00
docs refactor(core): remove deprecated Renderer (#33019) 2019-10-08 09:23:00 -07:00
elements build(packaging): add repository.directory field to package.jsons (#27544) 2020-02-25 13:12:45 -08:00
examples docs: changes AoT to AOT for consistency (#35112) 2020-02-04 10:43:33 -08:00
forms build(packaging): add repository.directory field to package.jsons (#27544) 2020-02-25 13:12:45 -08:00
http build(packaging): add repository.directory field to package.jsons (#27544) 2020-02-25 13:12:45 -08:00
language-service build(packaging): add repository.directory field to package.jsons (#27544) 2020-02-25 13:12:45 -08:00
localize fix(localize): improve placeholder mismatch error message (#35593) 2020-02-24 09:11:21 -08:00
platform-browser build(packaging): add repository.directory field to package.jsons (#27544) 2020-02-25 13:12:45 -08:00
platform-browser-dynamic build(packaging): add repository.directory field to package.jsons (#27544) 2020-02-25 13:12:45 -08:00
platform-server build(packaging): add repository.directory field to package.jsons (#27544) 2020-02-25 13:12:45 -08:00
platform-webworker build(packaging): add repository.directory field to package.jsons (#27544) 2020-02-25 13:12:45 -08:00
platform-webworker-dynamic build(packaging): add repository.directory field to package.jsons (#27544) 2020-02-25 13:12:45 -08:00
private/testing build: migrate determining if Ivy is enabled in typescript genrule files to use angular_ivy_enabled (#33983) 2019-11-26 16:38:40 -05:00
router build(packaging): add repository.directory field to package.jsons (#27544) 2020-02-25 13:12:45 -08:00
service-worker build(packaging): add repository.directory field to package.jsons (#27544) 2020-02-25 13:12:45 -08:00
upgrade build(packaging): add repository.directory field to package.jsons (#27544) 2020-02-25 13:12:45 -08:00
zone.js feat: add a temp solution to support passive event listeners. (#34503) 2020-02-24 17:30:04 -08:00
BUILD.bazel build: reference zone.js from source directly instead of npm. (#33046) 2019-11-06 00:48:34 +00:00
README.md docs: add doc reference to npm package readme (#33911) 2019-11-20 14:46:23 -08:00
empty.ts refactor: move angular source to /packages rather than modules/@angular 2017-03-08 16:29:27 -08:00
goog.d.ts fix(ivy): use goog.LOCALE for Closure Compiler to define default LOCALE_ID (#31519) 2019-07-16 13:02:10 -04:00
license-banner.txt build: bump year (#34651) 2020-01-13 07:21:43 -08:00
system.d.ts refactor: move angular source to /packages rather than modules/@angular 2017-03-08 16:29:27 -08:00
tsconfig-build-no-strict.json refactor(core): ensure compatibility with typescript strict flag (#30993) 2019-07-18 14:21:25 -07:00
tsconfig-build.json refactor(core): ensure compatibility with typescript strict flag (#30993) 2019-07-18 14:21:25 -07:00
tsconfig-test.json refactor: fix typescript strict flag failures in all tests (#30993) 2019-07-18 14:21:26 -07:00
tsconfig.json build: consolidate @angular-devkit/build-angular to the root package.json (#34002) 2019-12-02 10:49:12 -08:00
types.d.ts build: reference zone.js from source directly instead of npm. (#33046) 2019-11-06 00:48:34 +00:00

README.md

Angular

The sources for this package are in the main Angular repo. Please file issues and pull requests against that repo.

Usage information and reference details can be found in Angular documentation.

License: MIT