In angular we can set up a button to send ajax requests like this in view:
... ng-click=\"button-click\"
and in controller:
As suggested, using ng-disabled will solve your problem. I made a plunker to illustrate it here.
ng-disabled