reactive forms angular conditional disabling

Solutions on MaxInterview for reactive forms angular conditional disabling by the best coders in the world

showing results for - "reactive forms angular conditional disabling"
Luis
01 Aug 2017
1checkValue(event: Event) {
2  const ctrl = this.activityForm.get('docType');
3
4  if (event.value === 'document') {
5    ctrl.enable();
6  } else {
7    ctrl.disable();
8  }
9}
10