title: how to trigger form validation in angularjs programmatically on a dirty field
body: <p>I'm setting some form values on an angular form and need to have the validation trigger/set the field to dirty programmatically.  The current bug requires the user to actually interact with the form field to trigger the "required" validation and to have it turn green.</p>
  
  <pre><code>FB.Event.subscribe('auth.authResponseChange', function(response) {
      if (response.status === 'connected') {
          FB.api('/me', function(response) {
        var scope = angular.element($("#PhotoUploadForm")).scope();
        scope.$apply(function(){
          scope.user.firstName = response.first_name;
          scope.user.lastName = response.last_name;
          scope.user.email = response.email;
        });
  });
  </code></pre>
  
  <p>And here is the html</p>
  
  <pre><code>&lt;form no-validate id="PhotoUploadForm" name='form' action="/uploaded" enctype="multipart/form-data" method="POST" role="form" ng-controller="Controller"&gt;
      &lt;div class="col-md-5"&gt;
          &lt;div class="form-group"&gt;
              &lt;label class="control-label" for="firstName" &gt;First Name&lt;/label&gt;
              &lt;input type="text" class="form-control" id="firstName" name="firstName" ng-model="user.firstName" required /&gt;
          &lt;/div&gt;
          &lt;div class="form-group"&gt;
              &lt;label  class="control-label" for="lastName"&gt;Last Name&lt;/label&gt;
              &lt;input type="text" class="form-control" id="lastName" name="lastName" ng-model="user.lastName" required /&gt;
          &lt;/div&gt;
          &lt;div class="form-group"&gt;
              &lt;label class="control-label" for="email"&gt;Email&lt;/label&gt;
              &lt;input type="email" class="form-control" id="email" name="email" ng-model="user.email" required /&gt;
          &lt;/div&gt;
  
      &lt;/div&gt;
  &lt;/form&gt;
  </code></pre>