I want to prevent multiple form submissions using angular.js. The question is related to this question.
When the user clicks on a form submit button the value / labe
Just add a new property in your controller
$scope.processing = false;
In your method
$scope.processData = function(){
$scope.processing = true;
$http.post('').then(function(){
$scope.processing = false;
});
});
In your html bind ng-disabled attribute to the $scope.processing property to disable the button and show text while the method is processing.