|
Answer» ng-disabled directive disables a given control. In below example, we’ve added ng-disabled attribute to a HTML button and PASS it a model. Then we’ve ATTACHED the model to an checkbox and can see the variation. <INPUT type = “checkbox” ng-model = “enableDisableButton”>Disable Button <button ng-disabled = “enableDisableButton”>CLICK Me!</button> ng-disabled directive disables a given control. In below example, we’ve added ng-disabled attribute to a HTML button and pass it a model. Then we’ve attached the model to an checkbox and can see the variation. <input type = “checkbox” ng-model = “enableDisableButton”>Disable Button <button ng-disabled = “enableDisableButton”>Click Me!</button>
|