Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/dhineshwiz/angular-promise-button
- Owner: dhineshwiz
- Created: 2018-02-12T07:46:38.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2023-05-02T06:39:23.000Z (over 1 year ago)
- Last Synced: 2024-12-10T03:55:17.421Z (28 days ago)
- Topics: angular, button, promise
- Size: 7.81 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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)