An async state wrapper
Inspired by https://github.com/DockYard/ember-async-button
ember install ember-async-action-container
If you want reset state:
Then
this.set('myPromise', null);
to reset.
The CSS classes exposed are default
, pending
, settled
, rejected
, and fulfilled
.
git clone <repository-url>
cd ember-async-action-container
npm install
npm run lint:js
npm run lint:js -- --fix
-
ember test
– Runs the test suite on the current Ember version -
ember test --server
– Runs the test suite in "watch mode" -
ember try:each
– Runs the test suite against multiple Ember versions
ember serve
- Visit the dummy application at http://localhost:4200.
For more information on using ember-cli, visit https://ember-cli.com/.
This project is licensed under the MIT License.