mardi 3 mars 2015

Ember routing for many and for just 1 item

How can I have a route that gives me all the foo items and will also give me a particular one?


eg I want this:



this.resource('foos');//for all
this.resource('foos', {path: ' foos/foo_id'}); // for one




Aucun commentaire:

Enregistrer un commentaire