Class DS.Errors
Extends: | Ember.Object |
---|---|
Uses: | Ember.Evented , | Ember.Enumerable
Defined in: | addon/-private/system/model/errors.js:14 |
Module: | ember-data |
isEmpty
Module: | ember-data |
---|
Defined in addon/-private/system/model/errors.js:201
length
Module: | ember-data |
---|
Defined in addon/-private/system/model/errors.js:193
Total number of errors.
messages
Module: | ember-data |
---|
Defined in addon/-private/system/model/errors.js:157
An array containing all of the error messages for this record. This is useful for displaying all errors to the user.
{{#each model.errors.messages as |message|}} <div class="error"> {{message}} </div> {{/each}}
© 2020 Yehuda Katz, Tom Dale and Ember.js contributors
Licensed under the MIT License.
https://api.emberjs.com/ember-data/2.18/classes/DS.Errors/properties