I'm using ember 2.1 with ember-data and I'm trying to spit out the keys and values in the ember-data object without having to specify each column individually.
For example:
<ul>
{{#each model key="@identity" as |row|}}
<li>{{row}} <small>{{moment-from-now row.createdAt}}</small></li>
{{/each}}
</ul>
So where it says {{row}} which returns the full object "". I don't want to have to say {{row.name}} but rather spit out each key and value for each row in the model.
The whole point is to give the component any data from any model, and it will show all the information correctly without having to specify the field names for every db table.
Aucun commentaire:
Enregistrer un commentaire