I recently started learning about Ionic 2 and spent time going through the documentation. I tried implementing this code to get the current select value when it changes and print it to the console.
page.html
<ion-select #D ionChange="onUpdate(D.value)">
<ion-option value="x">X</ion-option>
<ion-option value="y">Y</ion-option>
</ion-select>
page.ts
public DValue:String;
onUpdate(DValue) {
console.log(DValue);
}
Unfortunately, nothing related to this is showing up in the console. Is there something missing in the binding process?