ember-promise-button

0.1.0 • Public • Published

Ember-promise-button

Another implementation of a promise-aware component for emberjs

Use it like so:

{{promise-button promise=myPromise loadingText="loading"}}
  submit will to allah
{{/promise-button}}

This will create a button which, when myPromise is pending, become disabled.

By the way, this may seem obvious, but you MUST pass a promise to the promise button

TODO:

  1. include optional loading styles
  2. allow more customization in now loading texts

Installation

  • git clone this repository
  • npm install
  • bower install

Running

Running Tests

  • ember test
  • ember test --server

Building

  • ember build

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

Package Sidebar

Install

npm i ember-promise-button

Weekly Downloads

1

Version

0.1.0

License

MIT

Last publish

Collaborators

  • foxnewsnetwork