vendredi 13 juillet 2018

How do I access object property in Handlebars template?

My Ember component JS looks like below;

row = {};
Ember.set(row[my.constants.fieldKey], "cssType", 'leftPadding')

and my component HBS looks like below;



In short, how do I access the following (evaluated example here) in hbs dynamically ??

row['my-field-key'].cssType




Aucun commentaire:

Enregistrer un commentaire