# angularjs-promise-button

> A angularjs promise button for custom feedback on action promise

Latest version **1.0.0** (published 2018-02-12) · ISC license · 0 weekly downloads

## Install

```sh
npm install angularjs-promise-button
pnpm add angularjs-promise-button
yarn add angularjs-promise-button
bun add angularjs-promise-button
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2018-02-12 |
| First published | 2018-02-12 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | dhinesh sridhar |
| Maintainers | dhineshwiz |
| Keywords | angular, button, promise, button |

## Links

- npm: https://www.npmjs.com/package/angularjs-promise-button
- Repository: https://github.com/dhineshwiz/angular-promise-button
- Homepage: https://github.com/dhineshwiz/angular-promise-button#readme
- Issues: https://github.com/dhineshwiz/angular-promise-button/issues
- npm.io page: https://npm.io/package/angularjs-promise-button

## Alternatives

- [@commercetools/sync-actions](https://npm.io/package/@commercetools/sync-actions.md) — 25.1K weekly downloads
- [cwait](https://npm.io/package/cwait.md) — 21.4K weekly downloads
- [@ledgerhq/hw-app-cosmos](https://npm.io/package/@ledgerhq/hw-app-cosmos.md) — 4.2K weekly downloads
- [@financial-times/o-loading](https://npm.io/package/@financial-times/o-loading.md) — 2.8K weekly downloads
- [fa](https://npm.io/package/fa.md) — 185 weekly downloads

## Recent versions

- 1.0.0 (latest) — 2018-02-12

## 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:<br/>
**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
<!doctype html>
<html ng-app="myApp">
<head>

</head>
<body>
    ...
    <script src="//ajax.googleapis.com/ajax/libs/angularjs/1.1.5/angularjs-promise-button.js"></script>
    ...
    <script>
        var myApp = angular.module('myApp', ['promiseButton']);

    </script>
    ...
</body>
</html>
```
## Usage

```html
<button promise-click="buttonAction()" busy-text="'Updating'" hide-percentage="false">button_text</button>
```

## 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)

---
_Source: https://npm.io/package/angularjs-promise-button · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
