patchvalue disabled angular code example
Example: form control adding disabled and validators
value: string;
isDisabled: boolean;
//isDisabled and value come from your dynamic data.
fb: FormBuilder;
myGroup: FormGroup;
this.myGroup = fb.group({
form_control_name: new FormControl({
value: this.value,
disabled: this.isDisabled,
Validators.required)}
);