title: Angular validation on form submit
body: <p>I do validation in angular as following:</p>
  
  <pre><code>&lt;form #f="ngForm" (ngSubmit)="save(f.value, f.valid)" novalidate  &gt;
  
       &lt;input type="email" name="txtEmail" id="txtEmail" required
            [(ngModel)]="model.txtEmail" #txtEmail="ngModel"&gt;
          &lt;div class="msgerror" *ngIf="txtEmail.invalid &amp;&amp; (txtEmail.dirty || txtEmail.touched) "&gt;E-Mail invalid&lt;/div&gt;
  
       &lt;button type="submit"&gt;Submit&lt;/button&gt;
  
   &lt;/form&gt;
  </code></pre>
  
  <p>How can I trigger the validation on form submit? It only works when pressing keys in the input.</p>