1.1.1 • Published 8 years ago

angular-button-progress v1.1.1

Weekly downloads
4
License
MIT
Repository
github
Last release
8 years ago

What

A simple Angular directive for a Bootstrap button that indicates of a running operation associated with that button.

demo

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.