title: Update array value in angularjs
body: <p>This is my Sample code : </p>
  
  <pre><code>var array_03 = [{'name':'Kapila','age':30}];
  var array_04 = [{'name':'Saman','age':30}];    
  $scope.userName_03 = array_03[0]['name']; // Kapila
  $scope.userName_04 = array_04[0]['name']; // Saman
  angular.isArray(array_03); // true
  angular.isArray(array_04); // true
  
  array_04[0]['name'] == $scope.userName_03; // &lt;-- Problem here     
  
  $scope.userName_05 = array_04[0]['name']; // &lt;-- Hope to get 'Kapila' But Result 'Saman'
  </code></pre>
  
  <p>I Hope to $scope.userName_05 as 'Kapila' But Result 'Saman' </p>
  
  <p><strong>array_04[0]['name'] == $scope.userName_03; // &lt;-- Problem here</strong></p>