How to retrieve the selected options of a multiple <ion-select>?


#1

Hi there,

I’m using the following code:

<ion-list class="options">
        <ion-item>
          <ion-label>Available Tags</ion-label>
          <ion-select white_label [(ngModel)]="tags" multiple="true" cancelText="Cancel" okText="Select">
            <ion-option *ngFor="let tag of tagContainer"> {{tag}} </ion-option>
          </ion-select>
        </ion-item>
</ion-list>

I’m trying to bind the selected options to typescript so I can save them to an array and manipulate. What would be the best way to approach this?

Thanks


#2

Bump. Anybody have any suggestions?


#3

Never mind, I solved the issue.


#4

Can you post the solution please?


#5

Could you please share your solution?? I have same issue…