I am having issues with radio button with ngModel when I am populating with ngFor
- Radio button selection is misbehaving
- In the console.log of Form, i see the value of gender is "it"
What am I doing wrong Here is my code
app.component.ts
gender :string[] = ["Male", "Female"];
app.component.html
<div class="radio" *ngFor="let it of gender">
<label><input ngModel type="radio" name="gen" value="it">{{it}}</label>
</div>