Hi, I have a problem, I was setting up checkboxes on a dinamically generated list, after I got them working as intended, I noticed that the IDs for my labels aren’t working as intended:
<ion-item *ngFor="let jug of player1.jugadores; let i = index" >
<ion-label id="{{jug}}" (click)="presentAlert(jug,equipo1,pb.el.id)" slot="start" >{{jug}}
<ion-badge #ppb id="1pun{{i}}" color="danger">0</ion-badge>
<ion-badge #pb id="1per{{i}}" color="primary">0</ion-badge>
<ion-badge #bb id="1tec{{i}}" color="warning">0</ion-badge>
</ion-label>
<ion-checkbox slot="end" [(ngModel)]="pl1[i].selected"></ion-checkbox>
</ion-item>
The ID for each should be a name like “Arturo” or “Jose”, instead it gives “ion-cb-0-lbl”, “ion-cb-1-lbl” and so on, I checked if my component was returning the proper names for the front-end and it is, plus the {{jug}} in the label text is showing the name:
Edit: I discovered that the cause of the problem is the checkbox itself, removing it fixes the problem, but I still want to use it, what can I do with it? Thank you