I have an ember model called setting and it has 2000 records in it. I want to extract the model properties/keys from that which are (width, height ...). Is there any better approach than the following approach?
var testmodel = this.get('model');
var properties= Ember.keys((testmodel.content[0]._data));
Aucun commentaire:
Enregistrer un commentaire