How to get the ID (prod.productoId) of the row in ng-repeat and change to modal to update the record. It should be something with ng-click on the button but I'm not finding any examples. Someone could help. Thanks!
<tr ng-repeat="prod in produtos">
<td class="text-center">{{prod.produtoId}}</td>
<td class="text-center">{{prod.produtoOperadora}}</td>
<td>{{prod.produtoDesc}}</td>
<td>{{prod.produtoPreco | currency}}
<td>{{prod.produtoPrecoConv | currency}}</td>
<td class="text-center">
<button id="btn" class="btn btn-info btn-sm text-white" data-toggle="modal" data-target="#updateProd">
<i class="fa fa-refresh"></i>
</button>
</td>
</tr>