I have used 2 button in the form. I want to disable button1 on initialisation though I have given
You don't need to do anything in the controller if you are not working with the scope variable inside the controller.
So just do something like:
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.2.23/angular.min.js"></script> <div ng-app="app" ng-controller="ctrl"> <button ng-disabled="first !== true"> one</button> <button ng-click="first = true"> two</button> </div>