A simple ember-cli addon to support displaying API errors inside an Ember.js form.
- Ember.js v4.8 or above
- Ember CLI v4.8 or above
- Node.js v18 or above
ember install ember-cli-form-errors
To use the component, just wrap your existing form component with this component:
<div class='form-group'>
<label for='user_last_name'>Last name</label>
{{input value=user.lastName class='form-control' id='user_last_name'}}
</div>
becomes
{{#form-field object=user for='lastName'}}
<label for='user_last_name'>Last name</label>
{{input value=user.lastName class='form-control' id='user_last_name'}}
{{/form-field}}
See the Contributing guide for details.
This project is licensed under the MIT License.