Skip to content

alisonmoura/angularjs-loader-button

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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!

About

Loader button directive for Angularjs

Resources

Stars

Watchers

Forks

Packages

No packages published