I would like to disable button after one click.
Code:
<button id="submitRequest" class="btn btn-primary btn-active"
ng-disabled="!frmRequest.$valid||!r.DataUseAgreement||(!chkBMT&&!chkOncore&&!chkCAISIS&&!chkLIMS&&!chkFCR)"
ng-click="SaveData()">
<i class="fa fa-save"></i> Submit
</button>
How to disable this one after one click?
Thanks!
Disabling button after one click
In Controller,where u submit the form just add
This disables the button after one click form submission
It is quite straight forward. You just have to add one more Boolean condition in your ng-disable statement.
And in your Controller
Here is a Plunker that I made for you
Simple. You write to element a bit of javascript, like
onclick="this.disabled=true"
.In your SaveData() function, add below line in beginning of function:
then, in your ng-disabled condition, add additional condition: