Skip to content
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
@siddii

Description

@siddii

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': '&nbsp;',
                       '1': '{{personCount}} person is viewing.',
                       'other': '{{personCount}} people are viewing.'}">
  </ng-pluralize> 

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions