Socket
Book a DemoInstallSign in
Socket

ember-promise-button

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ember-promise-button

yet another ember stateful button implementation

latest
Source
npmnpm
Version
0.1.0
Version published
Maintainers
1
Created
Source

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:

  • include optional loading styles
  • allow more customization in now loading texts

Installation

  • git clone this repository
  • npm install
  • bower install

Running

  • ember server
  • Visit your app at http://localhost:4200.

Running Tests

  • ember test
  • ember test --server

Building

  • ember build

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

Keywords

ember-addon

FAQs

Package last updated on 03 Apr 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts