ionic verison : 6.12.3 ionic-angular:
<ion-select (ionChange)="onChange($event,item,'a')">
<ion-select-option value="f" >Female</ion-select-option>
<ion-select-option value="m" >male</ion-select-option>
</ion-select>
I tried giving (click)="someFunction()"
in ion-select-option
, but not working.
any workaround to achieve? onclicking male or female i need a callback(not on submiting or clicking ok).
Here is my code. You can try this =>
HTML:
TS:
Note: Both
ionChange
andngModelChange
is working fine. Check Stackblitz Demo Link.