Programmatically disable a reactive form component
angular, angular2-forms, typescript
Solution
this should work
this.someControl.reset({value: '', disabled: true});
Problem
I understand how we can specify the initial state of a reactive form control to be disabled. `someControl: [{value: '', disabled: true}]` How can I change the disable state at a later time, programmatically, based on a selection of another value in the form. So, e.g. `someControl` should be disabled if `anotherControl` has a certain value selected in a dropdown and enabled otherwise. Thanks