I want to load two different sets of the same model from the server.
I tried it like this:
App.ProjectListRoute = Em.Route.extend({
model: function() {
Em.RSVP.hash({
ownProjects: this.store.find('project',{owner: true}),
projects: this.store.find('project')
});
}
})
This fires 2 requests to the server and the response has the right data.
But {{each project in model.projects}} in the template shows the same records as {{each project in model.ownProjects}}
Aucun commentaire:
Enregistrer un commentaire