How to retrieve multiple values from selected checkbox?

<ion-item no-lines *ngFor="let details of size; let i=index" style="font-size: 12px;">

        <ion-checkbox item-left formControlName="size" (ionChange)="selectSize(details.size, $event)">

            <ion-col col-6>
            <ion-col col-2 >

I get the value of details.size but how can i retrieve prices along with sizes when user selects any checkbox?

you must change your selectSize function passing the price argument:
selectSize(details.size, details.price, $event);
or passing only details
selectSize(details, $event);

1 Like

It Worked Thank you so much :wink:

1 Like

Glad that I helped :smiley: