I want to get the number of the radio buttons checked of a form to save that number and pass it to a progress bar.
<mat-radio-group name="clientID" [(ngModel)]="model.clientID">
<mat-radio-button *ngFor="let n of CONSTANTS.CLIENT" [value]="n.value">
{{n.display}}
</mat-radio-button>
</mat-radio-group>
My progress bar is this:
The code of my progress bar is:
<div>
<p>{{progressnumber}}%</p>
</div>
<mat-progress-bar mode="determinate" value="{{progressnumber}}"></mat-progress-bar>
In my .ts y have the number hardcoded
progressnumber:number = 70;