This has been answer for the MOST part here: Handling errors with the (now default) Ember Data JSON-API adapter
I won't even go into how Ember docs stress to follow JSON API specs (http://ift.tt/17ykFBl), yet as far as I've read they don't even adhere to them (based off the answer linked to above)... but I digress!
I am not sure how to get errors into my model from the model() hook itself.
For example:
import Ember from 'ember';
export default Ember.Route.extend({
model() {
return this.get('store').findAll('page').catch(function(){});
}
});
I am unable to access the errors in my template as such:
<div class="error msg_animate">}</div>
I know I am missing a key factor here. Anyone able to point me in the right direction?
Aucun commentaire:
Enregistrer un commentaire