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