title: Is it possible to use form attribute in angularjs for form validation?
body: <p>Please think in angularjs way.</p>
  
  <p>Actually my layout is different. </p>
  
  <p>I have input fields inside form and also have input fields outside form, this is a special case in my product.</p>
  
  <p>I know about <strong>form attribute</strong> in HTML5</p>
  
  <p>But</p>
  
  <p><strong>In AngualrJS:</strong>
  I want to achieve outside form input fields works as good as inside form input field works for validation purpose.</p>
  
  <blockquote>
    <p>Is it possible? <br> We can not remove the place of <strong>form</strong> tag.</p>
  </blockquote>
  
  <p>If Yes please guide me.</p>
  
  <pre><code>&lt;div ng-app="myApp" ng-controller="validateCtrl" &gt;
    &lt;h6&gt;Validation Example&lt;/h6&gt;
  
    &lt;form id="frm" name="myForm" novalidate&gt;
      Inside form 
      &lt;p&gt;
        &lt;input type="submit" ng-disabled="myForm.email.$dirty &amp;&amp; myForm.email.$invalid"&gt;
      &lt;/p&gt;
    &lt;/form&gt;
  
    Outside form
    &lt;p&gt;Email:&lt;br&gt;
    &lt;input form="frm" type="email" name="email" ng-model="email" required&gt;
    &lt;/p&gt;
  
  &lt;/div&gt;
  </code></pre>
  
  <p><a href="https://plnkr.co/edit/c5VsBRDjDojbMNkfiVPM?p=preview" rel="nofollow noreferrer">Plunker</a></p>