码迷,mamicode.com
首页 > 其他好文 > 详细

[Angular] Angular i18n Pluralization Support

时间:2019-02-08 17:13:08      阅读:162      评论:0      收藏:0      [点我收藏+]

标签:ural   i18n   port   one   class   this   other   pre   The   

// 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>

 

[Angular] Angular i18n Pluralization Support

标签:ural   i18n   port   one   class   this   other   pre   The   

原文地址:https://www.cnblogs.com/Answer1215/p/10356360.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!