NgPluralCase
创建一个视图,当给定表达式根据 CLDR 规则与复数表达式匹配时,将在父视图 NgPlural中添加/删除该视图。
Creates a view that will be added/removed from the parent NgPluralwhen the given expression matches the plural expression according to CLDR rules.
Exported from
选择器
属性
| 属性 | 说明 |
|---|---|
value: string |
说明
<some-element [ngPlural]="value">
<ng-template ngPluralCase="=0">...</ng-template>
<ng-template ngPluralCase="other">...</ng-template>
</some-element>
参见 NgPlural以了解详情和范例。
See NgPluralfor more details and example.