ember-cli-form-errors

0.0.3 • Public • Published

Ember-cli-form-errors

Build Status Ember Observer Score

A simple ember-cli addon to support displaying API errors inside an Ember.js form.

Installation and use

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}}

Contributing

Installation

  • git clone this repository
  • npm install
  • bower install

Running

Running Tests

  • npm test (Runs ember try:testall to test your addon against multiple Ember versions)
  • ember test
  • ember test --server

Building

  • ember build

For more information on using ember-cli, visit http://www.ember-cli.com/.

About

ember-cli-form-errors was developed at District Management Group.

Package Sidebar

Install

npm i ember-cli-form-errors

Weekly Downloads

8

Version

0.0.3

License

MIT

Unpacked Size

5.74 kB

Total Files

8

Last publish

Collaborators

  • denniscky
  • pjmorse