If by edit you mean you just want to directly change the data programmatically you can just access the object from within the array and change the data
$scope.customers[1].customer_name = 'Saiman';
On the other hand if you mean you want to get a text input and change the data then you can use ngModel to bind the input to the property you want to change. Angular will take care of the rest behind the scenes
<tr ng-repeat="customer in customers">
<td><input type="text" ng-model="customer.customer_name"></td>
</tr>
Combine that with ngIf, ngClick, and a flag property you can switch between a data view and an edit view.
Use ngClick to change a flag property telling your app when you are editing a particular data item
<button ng-click="customer.$editing=!customer.$editing">Edit</button>
This will create a flag named $editing
. When it is false just show the data view, and when it is true show the editor. Use ngModel to bind the input to your customer data.
<td ng-if="!customer.$editing"> {{customer.customer_name}}</td>
<td ng-if="customer.$editing"> <input type="text" ng-model="customer.customer_name"> </td>
Demo
angular.module("app",[]).controller("ctrl",function($scope){
$scope.customers = [{
customer_name:"Sailesh",
mobile:"123456789"
},{
customer_name:"Mahesh",
mobile:"123456789"
},{
customer_name:"Rob",
mobile:"123456789"
}];
});
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.2.23/angular.min.js"></script>
<table ng-app="app" ng-controller="ctrl" width="70%">
<tr ng-repeat="customer in customers">
<td ng-if="!customer.$editing"> {{customer.customer_name}}</td>
<td ng-if="customer.$editing"> <input type="text" ng-model="customer.customer_name"> </td>
<td> {{customer.mobile}} </td>
<td><button ng-click="customer.$editing=!customer.$editing">Edit</button></td>
</tr>
<tr><td colspan="3">{{customers}}</td></tr>
</table>
Note that using customer.$editing
puts a property on the customer
object itself. If you do not want to pollute the actual customer object you can use other means like keeping a WeakMap to keep track of the flags.