I need to pass a $index value of a specific element, added with ng-repeat, to a javascript function. My code sample:
<tr ng-repeat="cells in CouponsList.CellPhones">
<td><button ng-click="doStuff($index+1)">{{cells.localVendorAddress}}</button></td>
Now I am adding several buttons and when a specific button is pressed I need to send it's specific $index to the doStuff($index) function. Any idea?
doStuff()
is not on the scope. – Azo