title: strange angularJs variable behavior
body: <p>Kindly explain me this behavior. I have decalred 2 variables.</p>
  
  <pre><code>$scope.data = {'value' : 123};
      $scope.v1 = $scope.data;
  </code></pre>
  
  <p>Now if i change the value </p>
  
  <pre><code>$scope.data.value = 2;
  </code></pre>
  
  <p>and try to print </p>
  
  <pre><code>alert('old value is '+$scope.v1.value);
  </code></pre>
  
  <p>It gives me output as 2 whereas I think it should give me value as 123. 
  Kindly tell me that is it the same behavior like <strong>Java</strong> where one variable has different instances and change in one reflects in another ?  </p>