自TS以来,使用ionic v3获得值ion-select

时间:2018-12-18 16:10:51

标签: ionic-framework ion-select

我有两个离子选择,单击按钮时,我想从TS中捕获每个选择的值。请帮助

部分代码:

<ion-item>
  <ion-label class="lbReward" color="dark" >Reward Type:  </ion-label>
  <ion-select (ionChange) = "onChange()"   [ngModel] = "selectedRewardType">
    <ion-option value="priceDiscount">Total Price Discount</ion-option>
    <ion-option value="categoryDiscount">Category Price Discount</ion-option> 
    <ion-option value="freeGiftwithPrice">Sufficient Price Free Gift</ion-option>
    <ion-option value="freeGiftwithMeal">Meal with Free Gift</ion-option>
  </ion-select>
</ion-item>

0 个答案:

没有答案