[Angular] Angular i18n Pluralization Support

// Component:

this.coursesTotal = this.course,length
<div i18n>{coursesTotal, plural, =0 {No course in available.}
   =1 {One course is available.}
   other {A total of  {{coursesTotal}} courses are available.}
}
</div>

猜你喜欢

转载自www.cnblogs.com/Answer1215/p/10356360.html