title: $scope.formName.$setPristine() does not work ; How to reset form in angular?
body: <p>create a form in angular 1.5 </p>
  
  <p><code>&lt; form name="movieForm" ng-submit="addMovie(movie) ../&gt;</code> </p>
  
  <p>and when I try to reset the form after form submission using</p>
  
  <p><code>$scope.movieForm.$setPristine()</code> </p>
  
  <p>BUT it gives error in console : <strong><em>Cannot read property '$setPristine' of undefined</em></strong></p>
  
  <h3>form.html</h3>
  
  <pre><code>&lt;form name="movieForm" novalidate role="form" ng-submit="movieForm.$valid &amp;&amp; addMovie(movie)"&gt;
    &lt;input type="text" ng-model="movie.name" name="mName" required /&gt;
    &lt;input type="text" ng-model="movie.star" name="mStar" /&gt;
    &lt;input type="number" ng-model="movie.year" name="mYear" required /&gt;  
    &lt;input type="submit" value="Save" /&gt;
    &lt;input type="button" value="Reset" ng-disabled="movieForm.$pristine" ng-click="reset()" /&gt;
  &lt;/form&gt;
  </code></pre>
  
  <h3>app.js</h3>
  
  <pre><code>(function() {
    var app = angular.module('app', []);
  
    app.controller('movieController', function($scope) {
        $scope.title = "Home Page";
        $scope.movieData = [{
          name: 'PiKu',
          star: 'Irrfan Khan',
          releaseYear: '2015'
        }];
        $scope.addMovie = function(movie) {
          if(movie &amp;&amp; movie.name) {
              $scope.movieData.push({
                  name : movie.name,
                  star : movie.star,
                  releaseYear : movie.year
              });
          }
        };
  
        $scope.reset = function() {
          $scope.movieForm.$setPristine();
          $scope.movieForm.$setUntouched();
        };
  
        // **un-commenting below line gives error in console** 
  
        //$scope.reset();
  
      });
  
  }());
  </code></pre>
  
  <p>also checked <code>$scope.movieForm()</code> in console but its undefined ?</p>
  
  <p>What is the issue? </p>
  
  <p>see the <a href="http://jsbin.com/seririv/3/edit?html,js,console,output" rel="nofollow">DEMO</a> </p>