Ng-Disable-3

 
In this example we have two buttons start and stop. Initial Start button is enable and stop button is disable, when you click on the start button the stop button is gets enable and start button will disabled.
 
 
 
<!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> <input ng-disabled="isDisabled" type="button" ng-click="isDisabled=!isDisabled" value="Start" /> <input ng-disabled="!isDisabled" type="button" ng-click="isDisabled=!isDisabled" value="Stop" /> </div> </body> </html>
Output