Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/dhineshwiz/angular-promise-button

A angularjs button for custom feedback
https://github.com/dhineshwiz/angular-promise-button

angular button promise

Last synced: 27 days ago
JSON representation

A angularjs button for custom feedback

Awesome Lists containing this project

README

        

angularjs-promise-button
=====================
An Angular module that gives you feedback for the action buttons on supply of promise

## Get Started
**(1)** You can install angularjs-promise-button using 2 different ways:

**Bower:**
```bash
$ bower install angularjs-promise-button --save
```
**NPM:**
```bash
$ npm install angularjs-promise-button --save
```

**(2)** Include `angularjs-promise-button` (or `angularjs-promise-button.js`) from the [src](https://github.com/dhineshwiz/angular-promise-button/master/src) directory in your `index.html`, after including Angular itself.

**(3)** Add `'promiseButton'` to your main module's list of dependencies.

When you're done, your setup should look similar to the following:

```html

...

...

var myApp = angular.module('myApp', ['promiseButton']);


...

```
## Usage

```html
button_text
```

## Directive Options

promise-click - Promise of the action to be returned (type: expression)
busy-text - Busy text which needs to be shown on action perform (type: string)
hide-percentage - To hide the percentage of work done(type boolean)