I have the url /tests/test-slug?extradata=data all my params are setup correctly within ember. When that extradata param is set the model updates with the new data from the (/tests/test-slug?extradata=data) response. Usually I would retrieve data using ember-model by doing:
model: function (params) {
return App.Test.findQuery(params);
}
But with the query parameter added to this nested url its giving me 'test-slug' as a param with the extradata and making a request to the server with: ?tests_slug=test-slug&extradata=data
Is there anyway I can use query params and update my model on a nested route?
Aucun commentaire:
Enregistrer un commentaire