title: AngularJS: Is there any way to determine which fields are making a form invalid?
body: <p>I have the following code in an AngularJS application, inside of a controller,
  which is called from an ng-submit function, which belongs to a form with name <code>profileForm</code>:</p>
  
  <pre><code>$scope.updateProfile = function() {
    if($scope.profileForm.$invalid) { 
      //error handling..
    }
    //etc.
  };
  </code></pre>
  
  <p>Inside of this function, is there any way to figure out which fields are causing the entire form to be called invalid?</p>