How do I retrieve an ion-input value in Ionic 2?
In my example.html I have this:
<ion-input value="hello" type="text" id="ion1"></ion-input>
While in example.ts I tried in this way, following this (maybe outdated) question:
let inputValue = (<HTMLInputElement>document.getElementById("ion1")).value;
But I get undefined
in google chrome
console.