I'am starting with Ember, and I wanted to know if its possible to do this-->
My server model of a book:
Book = { name: 'string', author_id: 'number' }
But in my ember side i wanted to have something like this:
Book = { name: DS.attr('string'), author: DS.belongsTo('author' , {via: 'author_id'}) }
Is this possible? Thanks,
Aucun commentaire:
Enregistrer un commentaire