My Ember logic for updating book
this.store.findRecord('book', 13).then(function (book) {
book.set('status', 'new');
book.set('author', 'Someone');
book.set('rating', '5');
book.save();
}
My question is, how can I read book.status,book.author& book.rating from server side? I am only getting id i.e 13. Please help me out.
Aucun commentaire:
Enregistrer un commentaire