mirror of
https://github.com/angular/angular
synced 2026-05-24 09:28:37 +00:00
Previously, when a downgraded component was destroyed in a way that did not trigger the `$destroy` event on the element (e.g. when a parent element was removed from the DOM by Angular, not AngularJS), the `ComponentRef` was not destroyed and unregistered. This commit fixes it by listening for the `$destroy` event on both the element and the scope. Fixes #22392 PR Close #22400 |
||
|---|---|---|
| .. | ||
| change_detection_spec.ts | ||
| content_projection_spec.ts | ||
| downgrade_component_spec.ts | ||
| downgrade_module_spec.ts | ||
| examples_spec.ts | ||
| injection_spec.ts | ||
| testability_spec.ts | ||
| upgrade_component_spec.ts | ||