Hy there.
Is there a way to access a model class without creating a record from store and looking at his constructor ?
I have :
const feedback = this.store
.createRecord('feedback')
.get('constructor');
const attrs = Ember.get(feedback, 'attributes')
._keys
.list;
// attr = ["attr_1", "attr_2", ...]
Is there a proper way to find the same result without creating a record ?
cheerz
Aucun commentaire:
Enregistrer un commentaire