DS.Ember.HTMLBars.helpers

DS.Ember.HTMLBars.helpers Class

Module: ember-data

pluralize (count, word)

Defined in node_modules/ember-inflector/addon/lib/helpers/pluralize.js:4

If you have Ember Inflector (such as if Ember Data is present), pluralize a word. For example, turn "ox" into "oxen". Example: {{pluralize count myProperty}} {{pluralize 1 "oxen"}} {{pluralize myProperty}} {{pluralize "ox"}}

Parameters:

count [Number|Property]
count of objects
word String|Property
word to pluralize

© 2017 Yehuda Katz, Tom Dale and Ember.js contributors
Licensed under the MIT License.
https://emberjs.com/api/data/classes/DS.Ember.HTMLBars.helpers.html

在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部