Here is my code:
<tbody>
<tr ng-repeat="list in results">
<td>{{list.name}}</td>
<td contenteditable>{{list.phone}}</td>....
<button class="btn" type="button" style="" ng-click="update(results)">
Update Data
</button>
User can change the phone number when he hits the Update Data
button the value of phone for that record should be the new user typed value.
How can I update the results records based on user input?