title: Angular $setPristine() not working
body: <p>I'm trying to use Angular's built-in form functions, specifically <code>setPristine()</code> to clear the form on user submit. My controller has access to <code>$scope.newForm</code> (my form) with all of its methods, but running <code>$scope.newForm.$setPristine()</code> isn't resetting the form fields.</p>
  
  <p>Here is my HTML:</p>
  
  <pre><code>&lt;div ng-controller="NewFormController"&gt;
      &lt;h3&gt;New Entry&lt;/h3&gt;
  
      &lt;form name="newForm" method="post" novalidate&gt;
          &lt;div class="input-group"&gt;
              &lt;label&gt;Name&lt;/label&gt;
              &lt;input name="name" type="text" ng-model="place.name"/&gt;
          &lt;/div&gt;
          &lt;div class="input-group"&gt;
              &lt;label&gt;Description&lt;/label&gt;
             &lt;textarea name="description" type="text" ng-model="place.description"&gt;&lt;/textarea&gt;
          &lt;/div&gt;
          &lt;div class="input-group"&gt;
             &lt;label&gt;Neighborhood&lt;/label&gt;
             &lt;input name="neighborhood" type="text" ng-model="place.neighborhood"/&gt;
          &lt;/div&gt;
          &lt;div class="input-group"&gt;    
              &lt;label&gt;Address&lt;/label&gt; 
             &lt;input name="location" type="text" ng-model="place.address"/&gt;
          &lt;/div&gt;
          &lt;input type="submit" value="Submit" ng-click="submit(place)"/&gt;
      &lt;/form&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>And here is the controller where I call <code>setPristine()</code>:</p>
  
  <pre><code>app.controller('NewFormController', function($scope, $compile) {
  
      $scope.place = { 
          name: 'ExamplePlace', 
          description: 'This is a description!', 
          neighborhood: 'Manhattan', 
          address: '112 Street Place' 
      };
  
      $scope.submit = function(place) {
          $scope.newForm.$setPristine();
          $scope.newForm.$setUntouched();
      };
  
  });
  </code></pre>
  
  <p><a href="http://codepen.io/himmel/pen/yNWLPa" rel="noreferrer">Here is a working codepen</a> that reproduces my problem.</p>
  
  <p>Note: I'm using Angular version 1.4.3.</p>