I have a select control that I want to disable dynamically based on a condition:
this.activityForm = this.formBuilder.group({
docType: [{ value: '2', disabled: this.activeCategory != 'document' }, Validators.required]
});
However, docType doesn't become enabled even though at some point this.activeCategory becomes 'document'.
How do I fix this?