10
rated 0 times
[
17]
[
7]
/ answers: 1 / hits: 5419
/ 4 Years ago, wed, june 24, 2020, 12:00:00
I'm using angular material 9.2.4
im working on the angular material mat radio button with an input field, every payment methods will have their own input field. if clicked 'Cash' will show one input field and hide other's input field.
how to show the input field based on the mat radio button selection?
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>
```
More From » angular