1.0.0 • Published 6 years ago

angularjs-loader-button v1.0.0

Weekly downloads
3
License
ISC
Repository
github
Last release
6 years ago

Angularjs Loader Button

Loader button directive for Angularjs

Install

Bower

bower install angularjs-loader-button --save

NPM

npm install angularjs-loader-button --save

Add angularjsLoaderButton as dependency in your module.

angular.module('app',['angularjsLoaderButton']);

Usage

<loader-button text="Button text" load="fetchDatas()"></loader-button>

The loaderButton directive will call the function passed in load attribute. This function should be in $scope and should return an Promise instance. Likewise:

$scope.fetchDatas = function() {
  return $http.get(...).then(..);
};

Live Demo

The live demo is comming...

Issues

Please let me know if you are having problems, create an issue. Thanks!