title: AngularJS <input> validation with no enclosing <form>
body: <p>Is it possible in Angular to validate a single, isolated <code>&lt;input&gt;</code> in a similar way the forms are validated? I'm thinking about something like this:</p>
  
  <pre><code>&lt;div class="form-group"&gt;
      &lt;input name="myInput" type="text" class="form-control" ng-model="bindTo" ng-maxlength="5"&gt;
      &lt;span class="error" ng-show="myInput.$error.maxlength"&gt;Too long!&lt;/span&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>The example above doesn't work. Enclosing it in a <code>&lt;form&gt;</code> and replacing <code>ng-show</code> with <code>ng-show="myForm.myInput.$error.maxlength"</code> helps. </p>
  
  <p>Is it possible to do this without using <code>&lt;form&gt;</code>?</p>