title: Angular: Can't bind to 'ngModelOptions' since it isn't a known property of 'input'
body: <p>I've problem with validation. I want to add validation to my email input, but I get error "Can't bind to 'ngModelOptions' since it isn't a known property of 'input'".</p>
  
  <h2>add-component.html</h2>
  
  <pre><code>&lt;form name="form" [formGroup]="form" (ngSubmit)="form.valid" class="form"&gt;
  &lt;mat-form-field&gt;
      &lt;input matInput
             placeholder="Adres e-mail"
             formControlName="email"
             [(ngModel)]="employee.email"
             [ngModelOptions]="{standalone: true}"
             [ngClass]="{'is-invalid':form.get('email').touched &amp;&amp; form.get('email').invalid}"
             type="email"
             required&gt;
             &lt;div *ngIf="form.get('email').touched &amp;&amp; form.get('email').invalid"  class="invalid-feedback"&gt;
                &lt;div *ngIf="form.get('email').errors.required"&gt;Email Name is required&lt;/div&gt;
                &lt;div *ngIf="form.get('email').errors.email"&gt;Email must be a valid email Address&lt;/div&gt;
             &lt;/div&gt;
    &lt;/mat-form-field&gt;
  </code></pre>
  
  <h2>add-component.ts</h2>
  
  <pre><code>form = new FormGroup({
      email: new FormControl('', [
        Validators.required,
        Validators.email
      ])
    });
  </code></pre>
  
  <p>I have included FormsModule, ReactiveFormsModule in app.module.ts.</p>