Why am I unable to type in the input field before setting a value?
html
<form action="" [formGroup]="titleForm">
<input class="note-title" type="text" formControlName="title">
</form>
typescript
titleForm : FormGroup = new FormGroup(
{'title':new FormControl}
);
this.titleForm.patchValue({
title:"hello"
});
}
Although the input value is updated, I cannot input text into the field.