API Docs for: v3.16.0-alpha.2
Show:

Ember.HTMLBars.helpers Class

Item Index

Methods

pluralize

(
  • [count]
  • word
)

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 optional

    count of objects

  • word String | Property

    word to pluralize

singularize

(
  • word
)

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

Parameters:

  • word String | Property

    word to singularize