Templates.helpers.hash()

hash (options) Objectpublic

Defined in packages/ember-htmlbars/lib/helpers/hash.js:6

Use the {{hash}} helper to create a hash to pass as an option to your components. This is specially useful for contextual components where you can just yield a hash: handlebars {{yield (hash name='Sarah' title=office )}} Would result in an object such as: js { name: 'Sarah', title: this.get('office') } Where the title is bound to updates of the office property.

Parameters:

options Object

Returns:

Object
Hash
doc_EmberJs
2016-11-30 16:53:33
Comments
Leave a Comment

Please login to continue.