Ng-Disable-4

 
In this example we have two textboxes when you type in the first textbox the second textbox will disable and when you clear the first textbox then second textbox agian gets enable.
 
 
 
<!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title></title> <script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.4.2/angular.min.js"></script> </head> <body ng-app> <div> Name: <input type="text" ng-model="isDisabled" /> <input type="text" ng-disabled="isDisabled" /> </div> </body> </html>
Output