samedi 8 août 2015

Using ember-data and find call in ember

According to ember data documentation, if i want to make a call on my back-end application such as /photos/123 i use the code below.

App.PhotoRoute = Ember.Route.extend({
  model: function(params) {
    return this.store.find('photo', params.photo_id);
  }
});

But, i want to make a call like /photos/123/types. Any help?

http://ift.tt/1KWER0k

Aucun commentaire:

Enregistrer un commentaire