Created
March 11, 2013 21:10
-
-
Save thisboyiscrazy/5137781 to your computer and use it in GitHub Desktop.
Angularjs button loading like twitter bootstraps e.g.
<button btn-loading="something.busy" data-loading="I'm working on it...">Do It</button>
@marcalj, Its really nice example and working like a charm, I am using the loading button inside modal and the button gets disabled on click but the other form elements like other text boxes, dropdowns are active, so I want to disable that too, is there any solution for this.
Good job, @marcalj. Works perfect.
If you are already referencing the bootstrap library you can just simply call:
element.button('loading');
and
element.button('reset');
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I'm finally using this: (maintaining the same property as Twitter Bootstrap)
(also in buttons add the property in
ng-disabled
)