What is the use of “ng-disabled” directive in AngularJS?

The ng-disabled directive binds AngularJS application data to the disabled attribute of HTML elements. AngularJS has directives for binding application data to the attributes of HTML DOM elements.

Sample using “ng-disabled” directive

<div ng-app=”myApp”>

<p>
<input type=”checkbox” ng-model=”myStatus”>Enable/Disable Button
</p>

<p>
<button ng-disabled=”myStatus”>Save</button>
</p></div>

The ng-disabled directive binds the application … Read more