title: What is the difference between angular.copy() and an assignment (=)?
body: <p>I want to assign some values when a button click event happens via event parameter: </p>
  
  <pre><code>$scope.update = function(context) {
      $scope.master = context;
  };
  </code></pre>
  
  <p>I have assigned <code>user</code> values to  <code>$scope.master</code>.</p>
  
  <p>Now i am seeing <a href="https://docs.angularjs.org/api/ng/function/angular.copy" rel="noreferrer">angular.copy()</a>. So I wrote the code with <a href="https://docs.angularjs.org/api/ng/function/angular.copy" rel="noreferrer">angular.copy</a>.</p>
  
  <pre><code>$scope.update = function(context) {
      $scope.master = angular.copy(context)
  };
  </code></pre>
  
  <p>Both are doing same, so what is the difference? Please tell me about the difference between <code>angular.copy()</code> and <code>equal(=)</code>. </p>