disable mutilple buttons on a single button click

i am fetching data in a table using ng-repeat in angularjs.the table contains id which i need to accept or reject. I want to disable other buttons ina row when one of the button is pressed.I am able to do it with tit using ng-disabled but the buttons of all rows are disabled..Can someone help..thankx

here’s my code

<tr ng-repeat="result in results "  >

<td>{{$index +1}}</td>
      <button class="btn"      ng-click="processStart(result.id)"> Approve </button>
        <button class="btn" ng-click="processReject(result.id)"         ng-disabled="showRejectButton" >
   <span class="glyphicon glyphicon-remove"></span>  Reject          </button>

Source: javascript

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.