I am trying to set a value to a Mat input using FormControl
<input name="contact" matInput [matAutocomplete]="contactAuto" [formControl]="myControl" #contact (blur)="validateInput($event, contact.value)" >
In my Ts
myControl = new FormControl();
this.myControl.value = 'contact';
The above code is working fine but I get an error
Cannot assign to 'value' because it is a constant or a read-only property
Am I missing something here?