angular - Refresh select menu after new selected allocation -
i have following select menu, want selected value can changed after dropdown list got loaded.
<ion-select [(ngmodel)]="selectxx" name="matnr"> <ion-option selected disabled value="">choose matrixnumber...</ion-option> <ion-option *ngfor="let matnr of matrixnumbers" [selected]="(matnr == selectmatnr) ? true : false">{{matnr}}</ion-option> </ion-select>
now have case, selectmatnr can changed during runtime. when assign value selectmatnr, equal matnr, dropdown list not reloaded new selected value (selectmatnr). possible refresh ion-select programmatically ion-option new loaded?
Comments
Post a Comment