I'm using reactive form in my angular application.
measurement: new FormControl(true),
volume: new FormControl(0)
And in my html i'm using like
<input type="checkbox" formControlName='measurement' #measurement>Volume
<input formControlName='volume' type="number" class="form-control input-md" [attr.disabled]="!measurement.checked">
When ever I check 'Volume' check box it should enable 'volume' control. But it is not switching between enable and disable. But if I console 'measurement.checked' it is show true or false. How can I do enable or disable via local reference? Thank you.