<form [formGroup]="" (ngSubmit)="onSubmit()"> </form>
export class implements OnInit { : FormGroup; constructor(private formBuilder: FormBuilder) {} ngOnInit() { this. = this.formBuilder.group({ }) } get form() { return this..controls; } onSubmit() { //this is where the submit logic goes }