Friday, 15 July 2011

ember.js - ember: query using non standard id in router model hook? -



ember.js - ember: query using non standard id in router model hook? -

is there improve way of doing this?

import ember 'ember'; export default ember.route.extend({ model: function(params){ //there must improve way this! homecoming this.store.find('edition',{ server_id: parseint(params.edition_id) }).then(function(e){ homecoming e.get('firstobject') }); } });

i want find model store using query, , end array rather model...

many thanks.

ember.js

No comments:

Post a Comment