disable the button after one click using ng-disabled
问题 Below is the code for the ng-click, I want the click event only once and then disable the button . But, how to use ng-disabled for only button tag (without using input tag)? Suggestion would be really appreciated for the beginner to angularjs. <html> <script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.4.8/angular.min.js"> </script> <body ng-app="myApp"> <div ng-controller="myCtrl"> <p>Click the button to run a function:</p> <button ng-click="!count && myFunc()">OK</button> <p>The