我正在研究从Ionic 3到Ionic 4的迁移。我的ionic 3页面上有类似的内容:
<ion-select ...>
<ion-select-option (ionSelect)="myFucntion()" otherstuff...>Value</ion-select-option>
...other selection options
</ion-select>
因此,基本上,每次用户选择此特定选择时,都会运行myFunction()。如何在Ionic 4中做同样的事情?没有(ionSelect)事件。任何想法?谢谢。
答案 0 :(得分:1)
只需将(ionSelect)替换为(ionChange)
答案 1 :(得分:0)
将ionChange
移至ion-select
<ion-select (ionChange)="myFucntion($event)">