title: How to copy object and create new object with existing Json object?
body: <p>I am trying to create new object that will have some default values from scope.</p>
  
  <p>I found there is copy function to create new independent object.</p>
  
  <p><code>angular.copy(source,destication)</code></p>
  
  <p>But its not working for me. I get undefined when I console new object.</p>
  
  <pre><code>angular.copy($rootScope.answers,$rootScope.default);
  console.log($rootScope.answers);
  console.log($rootScope.default);
  </code></pre>
  
  <p><a href="https://plnkr.co/edit/BFGXr7LNAe0KvQipj9JJ?p=preview" rel="nofollow">https://plnkr.co/edit/BFGXr7LNAe0KvQipj9JJ?p=preview</a></p>
  
  <p>In app.js in .run method I trying to use copy function.
  Please let me know if I am missing anything.</p>