I am trying to keep my submit button disabled until form is HTML valid which I have managed to do like so:
<button type="submit" class="btn" ng-disabled="mainPaymentForm" ng-click="disableButton()"><%button%></button>
In my controller I have this:
// Disable form on submit
$scope.disableButton = function(){
$scope.button = "Loading...";
$scope.submit.disable = true; // This doesn't work
};
Overall I am just trying to keep button disabled until valid / and prevent multiple submit clicks once valid.
Thanks