This repository was archived by the owner on Apr 12, 2024. It is now read-only.
This repository was archived by the owner on Apr 12, 2024. It is now read-only.
ngPluralize not handling '0' count with empty whitespace rule properly #2575
Closed
Description
Here is the plunker test page for this issue - http://plnkr.co/0iKpGXso6XVuxzaDimvV
Please try entering '0' or other numbers in the text field and watch the result.
I read through the documentation & as far as I can see, the following two rules should be interpreted the same way.
<ng-pluralize count="personCount"
when="{'0': '',
'1': '{{personCount}} person is viewing.',
'other': '{{personCount}} people are viewing.'}">
</ng-pluralize>
<ng-pluralize count="personCount"
when="{'0': ' ',
'1': '{{personCount}} person is viewing.',
'other': '{{personCount}} people are viewing.'}">
</ng-pluralize>
Metadata
Metadata
Assignees
Labels
No labels