title: Update a array field value using field index in Angularjs array
body: <pre><code>$scope.MyArray = [
    {id:'01', name:'test1', dept:'abc1', address: 'xyz1'},
    {id:'02', name:'test2', dept:'abc2', address: 'xyz2'},
    {id:'03', name:'test3', dept:'abc3', address: 'xyz3'}
  ];
  </code></pre>
  
  <p>This is my array list, I have to update the field using the column index,</p>
  
  <p>for example I have a index value [2] which is field <code>dept</code>.</p>
  
  <p>To update the field value as <code>def</code> at the field of  <code>dept</code> of the row <code>01</code>.</p>
  
  <p>Expected result is,</p>
  
  <pre><code>$scope.MyArray = [
    {id:'01', name:'test1', dept:'def', address: 'xyz1'},
    {id:'02', name:'test2', dept:'abc2', address: 'xyz2'},
    {id:'03', name:'test3', dept:'abc3', address: 'xyz3'}
  ];
  </code></pre>