I have implemented a custom radio button that works perfectly in a static environment. However, when I make it dynamic, it starts behaving like a checkbox.
<div *ngFor="let currentwork of currentworks">
<label class="customcheck">{{currentwork}}
<input type="radio" name="{{currentwork}}">
<span class="checkmark"></span>
</label>
</div>
When I use name={{currentwork}}
, the radio buttons act like checkboxes instead. I aim to have radio buttons with only one selection possible. I am unsure why this issue is occurring and would appreciate any assistance in resolving it.