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>
 <td>{{result.companyName}}</td>
<td>{{result.id}}</td>
<td>{{result.createdAt}}</td>
<td>{{result.modifiedAt}}</td              
 <td>{{result.Status}}</td>
 <td>
      <button class="btn"      ng-click="processStart(result.id)"> Approve </button>
    </td>
  <td>
        <button class="btn" ng-click="processReject(result.id)"         ng-disabled="showRejectButton" >
   <span class="glyphicon glyphicon-remove"></span>  Reject          </button>


Source: javascript

Leave a Reply