title: Is ng-model needed when using ng-disabled and $invalid on a form?
body: <p>I'm using AngularJS and have a form where I want the Submit button to be disabled if some fields are not filled in.</p>
  
  <p>The standard way seems to be the following:</p>
  
  <pre><code>&lt;form ng-app name="myForm"&gt;
      &lt;label&gt;Name&lt;/label&gt;
      &lt;input type="text" name="name" ng-model="form.name" required&gt;
      &lt;input type="submit" ng-disabled="myForm.name.$invalid"&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p><a href="http://jsfiddle.net/YMSRU/">http://jsfiddle.net/YMSRU/</a></p>
  
  <p>However, if I omit the model from the input field the validation doesn't work and I don't need any models on my input fields (I submit my form using the ngUpload directive so it's actually sent to the form action in an iframe).</p>
  
  <p>Is there any solution or should I add random models just to make the validation work? It seems like a bad work-around.</p>