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-checkbox>

        <ion-label>
          <ion-row>
            <ion-col col-6>
              <h5>{{details.size}}</h5>
            </ion-col> 
            <ion-col col-2 >
              {{details.pretty_price}}
            </ion-col>
          </ion-row>
        </ion-label>
      </ion-item>

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: