I’m using ionic 5 but cannot do the following code:
<ion-select-option name="myToken" *ngFor="let user of listUsers" [value]="user.token"
(ionChange)="getTokenUser($event, user.id)">
{{ user.fullname }}
</ion-select-option>
I would like to get the user.id from the ngfor and using it on TS, how can achieve that?
Thank you!
2 posts - 2 participants