title: Angularjs form reset
body: <p>I have a reset function in angular to clear all the fields in a form. If I do something like:</p>
  
  <pre><code>&lt;a href="#" ng-click="resetForm()"&gt;reset&lt;/a&gt;
  
  $scope.resetForm = function() {
    $scope.someForm = {};
  }
  </code></pre>
  
  <p>Everything works fine. But I want to use this function for multiple forms on the site. If I pass the form object in like:</p>
  
  <pre><code>&lt;a href="#" ng-click="resetForm(someForm)"&gt;reset&lt;/a&gt;
  
  $scope.resetForm = function(form) {
    $scope.form = {};
  }
  </code></pre>
  
  <p>Then it won't work. Can someone explain to me why this would be happening?</p>