I am having a radio button group with multiple values. One value is a custom value which needs to be set by an field.
HTML:
<mat-radio-group [(ngModel)]="timeout">
<mat-radio-button value="1">1 hour</mat-radio-button>
<mat-radio-button value="6">6 hours</mat-radio-button>
<mat-radio-button value="{{timer_cust}}">Custom</mat-radio-button>
</mat-radio-group>
<mat-form-field>
<input matInput type="number" placeholder="min" [(ngModel)]="timer_cust">
</mat-form-field>
When I check the radio "Custom", the correct value is reflected on "timeout" variable. But when I change the input value, "timer_cust" updates, but "timeout" sticks to the old value. How do I update "timeout" which is bound to the "mat-radio-group" as the input value changes?