angular-docs-cn/packages
Kristiyan Kostadinov 8628826535 fix(core): incorrect error reported when trying to re-create view which had an error during creation (#43005)
Currently if a view throws an error during creation mode, we mark it as `incompleteFirstPass` so that we can try to recover later. The recovery is only possible inside component views.

The problem is that when this was introduced, I forgot to flip the `firstCreatePass` when an error is thrown which meant that calling `renderView` on the same component again is allowed. It will eventually hit an assertion which can be confusing for the end user. This issue only manifests itself when rendering views "manually" through `ViewContainerRef` (e.g. using `NgIf`).

These changes flip the `firstCreatePass` back to false on errors so that trying to re-render the same view will throw an error which is consistent to the one that broke the view during creation.

Fixes #41383.

PR Close #43005
2021-08-04 08:58:28 -07:00
..
animations refactor(animations): remove unused animation trigger imports (#42763) 2021-07-19 17:13:45 -07:00
bazel refactor(bazel): extract function to patch fileNameToModuleName on host (#42974) 2021-07-30 09:29:42 -07:00
benchpress refactor(benchpress): ensure compatibility with noImplicitOverride (#42512) 2021-07-12 13:11:15 -07:00
common refactor(core): update peerDependencies to allow rxjs7 (#42991) 2021-08-02 13:55:01 -07:00
compiler Revert "refactor(compiler): remove cyclic dependencies (#42062)" (#43033) 2021-08-03 15:38:54 -07:00
compiler-cli Revert "refactor(ngcc): remove unused import (#42062)" (#43033) 2021-08-03 15:38:55 -07:00
core fix(core): incorrect error reported when trying to re-create view which had an error during creation (#43005) 2021-08-04 08:58:28 -07:00
docs docs: remove/update broken links in resources appearing on aio (#42232) 2021-05-26 14:21:12 -07:00
elements refactor(core): update peerDependencies to allow rxjs7 (#42991) 2021-08-02 13:55:01 -07:00
examples feat(forms): allow minLength/maxLength validator to be bound to `null` (#42565) 2021-07-21 22:35:59 +00:00
forms refactor(core): update peerDependencies to allow rxjs7 (#42991) 2021-08-02 13:55:01 -07:00
language-service fix(language-service): global autocomplete doesn't work when the user tries to modify the symbol (#42923) 2021-08-02 17:08:30 -07:00
localize refactor(localize): ensure compatibility with noImplicitOverride (#42512) 2021-07-12 13:11:16 -07:00
misc/angular-in-memory-web-api refactor(core): update peerDependencies to allow rxjs7 (#42991) 2021-08-02 13:55:01 -07:00
platform-browser refactor: add override keyword to members implementing abstract declarations (#42512) 2021-07-12 13:11:17 -07:00
platform-browser-dynamic refactor: add override keyword to members implementing abstract declarations (#42512) 2021-07-12 13:11:17 -07:00
platform-server refactor: add override keyword to members implementing abstract declarations (#42512) 2021-07-12 13:11:17 -07:00
private/testing docs: convert the last `my-app` components to `app-root` (#42256) 2021-05-25 22:13:36 +00:00
router refactor(core): update peerDependencies to allow rxjs7 (#42991) 2021-08-02 13:55:01 -07:00
service-worker refactor: add override keyword to members implementing abstract declarations (#42512) 2021-07-12 13:11:17 -07:00
upgrade refactor(upgrade): ensure compatibility with noImplicitOverride (#42512) 2021-07-12 13:11:15 -07:00
zone.js ci: remove IE11 from the list of browsers used during CI (#43002) 2021-08-02 10:38:42 -07:00
BUILD.bazel build: remove unused no-strict tsconfig file (#42506) 2021-06-07 10:47:47 -07:00
README.md
circular-deps-test.conf.js
empty.ts
goog.d.ts
license-banner.txt
system.d.ts
tsconfig-build.json build: enable noImplicitOverride in project (#42512) 2021-07-12 13:11:14 -07:00
tsconfig-legacy-saucelabs.json build: enable noImplicitOverride in project (#42512) 2021-07-12 13:11:14 -07:00
tsconfig-test.json
tsconfig.json build: enable noImplicitOverride in project (#42512) 2021-07-12 13:11:14 -07:00
types.d.ts

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