submit form reactive

<form [formGroup]="form" (ngSubmit)="onSubmit()">
  <!-- ... -->
</form>