Closed syabro closed 2 years ago
<jp-ng-bs-animated-button
button-submitting-text="Loading..."
button-success-text="Access granted"
button-error-text="Access denied">LOGIN</jp-ng-bs-animated-button>
If you ok with these big changes and remove js prefix I'll refactor all other stuff and update documents. If not I'll continue work on my fork ;)
Great stuff, thanks syabro. Yep, if you could refactor the other stuff (inc. the prefix) and docs as well, that'd be awesome.
This is great, +1 to get this merged. I love the way to set texts using directive attributes rather than a js object.
Now button looks like
To control behavior we need to emit signal from scope:
First argument is object and could have 3 attributes to control status:
submitting
,success
,error