mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
54ef63b0f4
This commit fixes a bug where ICU expressions inserted into ngTemplateOutlets that are inside ngFor blocks would throw an error. We were assuming in view insertion code that text nodes would always exist by the time a view\`s creation block had executed. This is not true for text nodes created dynamically by ICUs because this happens in the update block (in `i18nApply`). This change ensures such dynamically created nodes are skipped when encountered too early (as they will be attached later by i18n code anyway). PR Close #31789