title: Force ng-dirty in angularjs form validation
body: <p>Doing form validation with angularjs I want to mark all required fields as erroneous when the user click submit.</p>
  
  <p>I am using input.ng-dirty.ng-invalid to style the controls with error. So what I want is to set ng-dirty on required controls (or all controls.. it will be the same for me) when the user submits the form.</p>
  
  <p>Validation is working. I understand why, what I am trying could be wrong, but I found no other way to do the same effect, except something that I think is too complicated to be right.</p>
  
  <p>What I tried was:</p>
  
  <pre><code>&lt;div ng-app&gt;
      &lt;form novalidate&gt;
          &lt;input name="formvalue" type="text" ng-model="formvalue" required /&gt;
          &lt;input type="submit" /&gt;
      &lt;/form&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p><a href="http://jsfiddle.net/yq4NG/">http://jsfiddle.net/yq4NG/</a></p>