reactive forms angular conditional disabling 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();
}
}