JSPM

ember-cli-form-errors

0.0.3
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 6
  • Score
    100M100P100Q34030F
  • License MIT

Wrap form elements in this component to display API errors.

Package Exports

  • ember-cli-form-errors

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (ember-cli-form-errors) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

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.