I have this Ionic
version 4 code that is simply trying to take a the selected value and pass it to a function in it's component:
<ion-item>
<ion-label>Convert Currency</ion-label>
<ion-select [(ngModel)]="currency">
<ion-select-option *ngFor="let c of currencyData" [value] = "c" >{{c.text}}</ion-select-option>
</ion-select>
I tried onChange
but that is apparently not in version 4.
You are looking for ionChange
<ion-select [(ngModel)]="currency" (ionChange)="yourFunction($event)">
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With