lundi 6 mars 2017

Access ember data's Internal model

how can ember-data object's internal model be accessed in Ember way? I tried something like:

    store.findRecord('user', 1).then(user => {
        console.log(user.get('name')); // outputs the user's name
    });

Doesn't seem to work.




Aucun commentaire:

Enregistrer un commentaire