How to enable AngularJS validation for button that is outside of form?
<p>I am new to angular, I was struck to trigger a <strong>form validation</strong> with the button outside the form. I have <strong>two buttons</strong> one inside form, which works and one outside, I want the <strong>outside button</strong> to do the <strong>same task</strong> as <strong>inside one</strong></p>

<pre><code>&lt;form ng-app="myApp" ng-controller="validateCtrl" name="myForm" novalidate&gt;
    &lt;p&gt;Username:
        &lt;br&gt;
        &lt;input type="text" name="user" ng-model="user" required&gt;
        &lt;span style="color:red" ng-show="myForm.user.$dirty &amp;&amp; myForm.user.$invalid"&gt;
            &lt;span ng-show="myForm.user.$error.required"&gt;Username is required.&lt;/span&gt;
        &lt;/span&gt;
    &lt;/p&gt;
    &lt;p&gt;Email:
        &lt;br&gt;
        &lt;input type="email" name="email" ng-model="email" required&gt;
        &lt;span style="color:red" ng-show="myForm.email.$dirty &amp;&amp; myForm.email.$invalid"&gt;
            &lt;span ng-show="myForm.email.$error.required"&gt;Email is required.&lt;/span&gt;
            &lt;span ng-show="myForm.email.$error.email"&gt;Invalid email address.&lt;/span&gt;
        &lt;/span&gt;
    &lt;/p&gt;
    &lt;p&gt;
        &lt;input type="submit" ng-disabled="myForm.user.$dirty &amp;&amp; myForm.user.$invalid || 
                                          myForm.email.$dirty &amp;&amp; myForm.email.$invalid"&gt;
    &lt;/p&gt;
&lt;/form&gt;
</code></pre>

<p>MY PLUNKER 
<a href="http://plnkr.co/edit/QObTwo1FcX4pC4f9sAL6?p=preview" rel="nofollow">http://plnkr.co/edit/QObTwo1FcX4pC4f9sAL6?p=preview</a></p>

<p>Any help is appreciated</p>