Need to display radio button values dynamically from array, and fetch the value of it based on which I need to display a <div>. please find the code below
html
<div *ngFor = "let fruit of fruits"
<input type = "radio"/>{{fruit}}>
</div>
component.ts -> contains the following array
fruits : string[] = ["apple", "mango"];
With this I am getting the radio buttons apple and mango.Need to get the value of the selected radio button (in assigning[(ngModel)], value) and Need to display another div based on individual selections. Please guide me on this