I have the following code:
<ion-select [(ngModel)]="newFoo.fields" multiple>
<ion-option *ngFor="let field of fieldStorage" [value]="field.id">{{ field.name }} - {{ field.category_name }}</ion-option>
</ion-select>
Where newFoo.fields is an array that’s storing the field.id from fieldStorage, that’s working fine. But I need another array to store all the field.category_names from selected options. I tried adding:
(change)=“category_list=fieldStorage.variety_name”
To the select, but that doesn’t seem to do a thing.