title: AngularJS - Reset $scope.data to original values
body: <p>I've created a fiddle here: <a href="http://jsfiddle.net/nicktest2222/W4VaA/" rel="noreferrer">http://jsfiddle.net/nicktest2222/W4VaA/</a></p>
  
  <p>I just want to be able to hit the reset button and put my original values back. Does anyone know the best way to go about doing this?</p>
  
  <p>Thanks in advance</p>
  
  <pre><code>function TodoCtrl($scope) {
    $scope.data = [
     {text:'learn angular', done:true},
     {text:'build an angular app', done:false}];
  
    $scope.orig = [$scope.data];
  
    $scope.reset = function() {
      $scope.data = $scope.orig;
    };
  
  }
  </code></pre>