set value control with class code example
Example: reactive form programmatically set value
this.formRef.patchValue({
field: value1,
field2: value2,
/* ... */
});
this.formRef.patchValue({
field: value1,
field2: value2,
/* ... */
});