• 개요
@angular/common

NgPluralCase

디렉티브
안정화

Creates a view that will be added/removed from the parent NgPlural when the given expression matches the plural expression according to CLDR rules.

API

    
      class NgPluralCase {}
    
    

constructor

NgPluralCase
@paramvaluestring
@paramtemplateTemplateRef<Object>
@paramviewContainerViewContainerRef
@paramngPluralNgPlural
@returnsNgPluralCase

value

string

설명

Creates a view that will be added/removed from the parent NgPlural when the given expression matches the plural expression according to CLDR rules.

다음 모듈에서 내보냄

사용 시 참고사항

<some-element [ngPlural]="value">
  <ng-template ngPluralCase="=0">...</ng-template>
  <ng-template ngPluralCase="other">...</ng-template>
</some-element>

See NgPlural for more details and example.

상세 내용으로 이동