I’m using an ion-select as follows:
<ion-item>
<ion-label>FIELD</ion-label>
<ion-select [(ngModel)]="usedFields" multiple>
<ion-option *ngFor="let field of fieldStorage" [value]="field.id">{{ field.name }}</ion-option>
</ion-select>
</ion-item>
With usedFields as an array of numbers and fieldStorage an array of objects with two properties: ids which are numbers and names which are strings. In addition, I have a button elsewhere which when clicked reads a QR code, reading a number and then pushes it into the usedFields array. So far so good, but the corresponding checkbox in the ion-select doesn’t update; the usedFields array itself is correct, but the ion-select checkboxes are not. Do I have to programatically reload the ion-select checkboxes from the ngModel or something?