[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>
相關文章
相關標籤/搜索