as you can see on the screenshot below , I have 2 buttons using mat radio group , If modelForm.get('schedule').value is equal to '1' then only show radio button from the mat radio group where value is 'A' else show all value from stages which are 'A' and 'B' .
How do we do that ? how do we hide only certain button from the loop based on a value ? Thanks.
#html
<mat-radio-group [disabled]="!modelForm.get('schedule').value" [(ngModel)]="stage" layout="column">
<mat-radio-button *ngFor="let stage of stages" [value]="stage.text" color="primary">
{{ stage.text }}
</mat-radio-button>
</mat-radio-group>
#TS
stages = [
{id: 0, text: 'A'},
{id: 1, text: 'B'},
]
