title: Validating Reactive Form after setting values manually in Angular 5?
body: <p>I am setting manually a reactive Form when some events happen.
  They are updated, although they don't pass any kind of validation.</p>
  
  <p>It would be something like       </p>
  
  <pre><code>this.FORM.controls.WHATEVERINPUT.setValue(X);
  </code></pre>
  
  <p>The point is that I am using Material Design and Angular 5 so in the template I have this structure</p>
  
  <pre><code>&lt;mat-form-field&gt;
  &lt;input matInput formControlName="WHATEVERINPUT"&gt;
  &lt;mat-error *ngIf="FORM?.controls.WHATEVERINPUT.errors"&gt;
   ... is required &amp; Minimum of 5 characters
  &lt;/mat-error&gt;
  &lt;/mat-form-field&gt;
  </code></pre>
  
  <p>which works completely fine, except with those values I mentioned before.</p>
  
  <p>I  have already played a little bit in the controller with</p>
  
  <pre><code>  this.FORM.controls.WHATEVERINPUT.markAsTouched();
      this.FORM.controls.WHATEVERINPUT.markAsDirty();
      this.FORM.updateValueAndValidity();
  </code></pre>
  
  <p>in several ways but I haven't already got a the value <strong>validated</strong></p>
  
  <p>I appreciate if someone can help me in any way
  Thanks</p>