I am currently utilizing angular material version 9.2.4
Within my project, I am implementing the angular material mat radio button with an input field. Each payment method will have its own corresponding input field. When the 'Cash' option is selected, it should display one input field while hiding the input fields for other methods.
Can anyone provide guidance on how to dynamically show the input field based on the selection of the mat radio button?
https://i.sstatic.net/YEzhX.jpg
My Code<mat-radio-group class="text-left">
<div class="form-group">
<mat-radio-button class="ft-12" *ngFor="let item of itemsList" value="{{item.name}}" (change)="onItemChange(item)">
{{item.name}}
<input type="text" class="form-control" placeholder="0">
</mat-radio-button>
</div>
</mat-radio-group>