1.0.0 • Published 8 years ago
angularjs-loader-button v1.0.0
Angularjs Loader Button
Loader button directive for Angularjs
Install
Bower
bower install angularjs-loader-button --saveNPM
npm install angularjs-loader-button --saveAdd 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!
1.0.0
8 years ago