title: Can we use angular input validation without form
body: <p>Is there a way to use angular input validation without form. See angular <a href="https://plnkr.co/edit/oLwkDeAehjZYuLIYdlLO?p=preview" rel="nofollow">plunker</a>. When I change <code>&lt;form name="myForm"&gt;</code> by <code>&lt;div name="myForm"&gt;</code> the validation does not work anymore.</p>
  
  <p>HTML : </p>
  
  <pre><code>&lt;form name="myForm"&gt;
    &lt;label&gt;
       User name:
       &lt;input type="text" name="userName" ng-model="user.name" required&gt;
    &lt;/label&gt;
    &lt;div role="alert"&gt;
      &lt;span class="error" ng-show="myForm.userName.$error.required"&gt;
       Required!&lt;/span&gt;
    &lt;/div&gt;
    &lt;label&gt;
       Last name:
       &lt;input type="text" name="lastName" ng-model="user.last" ng-minlength="3" ng-maxlength="10"&gt;
    &lt;/label&gt;
    &lt;div role="alert"&gt;
      &lt;span class="error" ng-show="myForm.lastName.$error.minlength"&gt;Too short!&lt;/span&gt;
      &lt;span class="error" ng-show="myForm.lastName.$error.maxlength"&gt;Too long!&lt;/span&gt;
    &lt;/div&gt;
  &lt;/form&gt;
  </code></pre>