mardi 4 août 2015

Ember store query template no model data

How come Ember model store query doesn't update template model data and find does?

// This doesn't update the template, when loading website no information is displayed but the data is loaded
model: function() {
    var parentModel = this.modelFor("server.view");
    return this.store.query("server", { server_address: parentModel.server_address });
}

// This works without any problems
model: function() {
    var parentModel = this.modelFor("server.view");
    return this.store.find("server", { server_address: parentModel.server_address });
}




Aucun commentaire:

Enregistrer un commentaire