angular-button-progress
v1.1.1
Published
An Angular directive for async operations
Downloads
1
Readme
What
A simple Angular directive for a Bootstrap button that indicates of a running operation associated with that button.
Install
$ npm install --save angular-button-progress
Usage
angular
.module('app', [
require('angular-button-progress')
])
NOTICE: It's a Webpack module, so there could be problems with loading styles by other module loaders.
<button ng-click="vm.deleteNote(vm.note)" type="button" button-progress class="btn btn-danger">Yes</button>
NOTICE: It captures ng-click handler which should return a promise.