Code: Select all
this.formGroup.setValue(value);
Code: Select all
@ViewChild('input', { static: false }) inputViewChild: ElementRef;
Code: Select all
@ViewChild('input', { static: true }) inputViewChild: ElementRef;
also
Code: Select all
setTimeout(() => {
this.formGroup.setValue(value);
}, 0);