javascript - How to disabled buttons using AngularJS? -
i have 2 functions in proc.ctrl editprocessrating function disabling save button until user answer question , have view function(viewprocessrating) on function want disable save draft , save both buttons permanently. how can achieve task using angularjs disable functionality ? code far tried below.... html <div class="spaceonbottom text-center"> <button type="submit" class="btn btn-default" ng-click="handlecancel()">cancel</button> <button type="submit" class="btn btn-default" ng-disabled="disabledraft" ng-click="saveprtdraft()" ng-show="showsavedraftbtn">save draft</button> <button type="submit" class="btn btn-primary" ng-disabled="disablesubmitbutton" ng-click="submitclicked()">submit</button> </div> kendogrid.js { field: '', ...