馃悶 bug report
Affected Package
It seems like any angular version with Ivy enabled is affected.
Is this a regression?
Since Ivy is enabled by default in the newer versions I would say yes, it's a regression.
Description
Plurals ICU expressions prevent following markup from being rendered when used within ng-container with ngIf on it. For version 10 it's true only for subsequent renderings, see examples in the next section.
Short code example:
<ng-container *ngIf="true">
you have {{ 1 }} {1, plural, one {task} other {tasks}} to do
</ng-container>
On subsequent renderings the code above will render you have 1 task
馃敩 Minimal Reproduction
Toggle block visibility by clicking button to see how the result is changed
https://stackblitz.com/edit/plural-ng8 - all is OK
https://stackblitz.com/edit/plural-ng9rc1 - is OK with Ivy disabled, otherwise the behavior is wrong for both first and subsequent renderings
https://stackblitz.com/edit/plural-ng10 - is OK with Ivy disabled, otherwise the behavior is wrong only for subsequent renderings
馃敟 Exception or Error
Nothing is logged
馃實 Your Environment
Angular Version:
Please see stackblitz examples dependencies above
馃悶 bug report
Affected Package
It seems like any angular version with Ivy enabled is affected.
Is this a regression?
Since Ivy is enabled by default in the newer versions I would say yes, it's a regression.
Description
Plurals ICU expressions prevent following markup from being rendered when used within
ng-containerwithngIfon it. For version 10 it's true only for subsequent renderings, see examples in the next section.Short code example:
On subsequent renderings the code above will render
you have 1 task馃敩 Minimal Reproduction
Toggle block visibility by clicking button to see how the result is changed
https://stackblitz.com/edit/plural-ng8 - all is OK
https://stackblitz.com/edit/plural-ng9rc1 - is OK with Ivy disabled, otherwise the behavior is wrong for both first and subsequent renderings
https://stackblitz.com/edit/plural-ng10 - is OK with Ivy disabled, otherwise the behavior is wrong only for subsequent renderings
馃敟 Exception or Error
Nothing is logged
馃實 Your Environment
Angular Version:
Please see stackblitz examples dependencies above