there is nor FormControl directive ???
i think it is not necessary to create controls again on your own:
export class SomePage {
// declare the form
clientForm: FormGroup;
constructor( ... private fb: FormBuilder){
this.clientForm = this.fb.group({
client_title: [''],
client_name: ['', Validators.compose([Validators.required, Validators.minLength(2)])],
...
});
}
}
Template:
<form [formGroup]="clientForm">
<input
type="text"
formControlName="client_title"
>
<input
type="text"
formControlName="client_name"
>
</form>