ladda-angular
Angularjs directive for Ladda button ( <300 bytes )
by @hakimel
Demo
You can also check live demo on codepen
How to use
Bower
You can Install ladda-angular using the Bower package manager.
$ bower install ladda-angular --save
npm
You can also find ladda-angular on npm.
$ npm install ladda-angular
Create your ladda button
For more information about how to create ladda button please refer ladda button repository.
The code
add the Following code into your document.
module
Add ladda
dependency to your module
var myApp = angular;
directive
Add directive ladda-button
with your normal ladda button.
Submit
Directive attribute should be a scope variable with value true or false or number.
true
>> To start loading.false
>> To stop loading.number
>> To set progress value.
Controller example
app;