how to disable condition in angular reactive forms code example
Example: reactive forms angular conditional disabling
checkValue(event: Event) {
const ctrl = this.activityForm.get('docType');
if (event.value === 'document') {
ctrl.enable();
} else {
ctrl.disable();
}
}