disabled in reactive forms code example
Example 1: can we get the value of form control after disabling it angular
this.myForm.getRawValue()
Example 2: reactive forms angular conditional disabling
checkValue(event: Event) {
const ctrl = this.activityForm.get('docType');
if (event.value === 'document') {
ctrl.enable();
} else {
ctrl.disable();
}
}