form reativo

import { FormGroup, FormControl } from '@angular/forms';

export class MyFormComponent {
  form: FormGroup;

  constructor() {
    this.form = new FormGroup({
      name: new FormControl(''),
      email: new FormControl(''),
      message: new FormControl('')
    });
  }
}