I'm having server side processing issues with Ember and Ember data.
If a validation error occurs, the API returns 422. The Ember data then launches the becameInvalid on the model.
Hence, I'm not sure what the best way to handle the errors I get, and how to get them to go into the view.
App.Challenge = DS.Model.extend Ember.Validations, title: attr('string') summary: attr('string')
I have 2 questions.
- I'm not sure that
becameInvalid is the place to handle errors, and if so, how to make errors appear in the view - In
becameInvalid , @get('isValid') returns true , which makes no sense to me.
Robin source share