mirror of
https://github.com/angular/angular
synced 2026-05-24 09:28:37 +00:00
AngularJS compilation is a synchronous operation (unless having to fetch a template, which is not supported for downgraded components). Previously, ngUpgrade tried to retain the synchronous nature of the compilation for downgraded components (when possible), by using a synchronous thenable implementation (`ParentInjectorPromise`). This was accidentally broken in #27217 by replacing a call to `ParentInjectorPromise#then()` (which can be synchronous) with a call to `Promise.all()` (which is asynchronous). This commit fixes this by introducing a `SyncPromise.all()` static method; similar to `Promise.all()` but retaining the synchronous capabilities of `SyncPromise` (which `ParentInjectorPromise` inherits from). Fixes #30330 PR Close #31840 |
||
|---|---|---|
| .. | ||
| change_detection_spec.ts | ||
| content_projection_spec.ts | ||
| downgrade_component_spec.ts | ||
| downgrade_module_spec.ts | ||
| examples_spec.ts | ||
| injection_spec.ts | ||
| static_test_helpers.ts | ||
| testability_spec.ts | ||
| upgrade_component_spec.ts | ||