How to set Value Input field Ionic 2
<p>I have a tiny question.</p>

<p>I'm using this HTML code:</p>

<pre><code>&lt;ion-input id="amount" type="number" &gt;&lt;/ion-input&gt;
</code></pre>

<p><code>&lt;button (click)="setinput()"&gt;Set Value&lt;/button&gt;</code></p>

<p>And this TS code:</p>

<pre><code>setinput(){
var input= document.getElementById("amount") as HTMLInputElement;
input.value=42;
console.log("amount");
console.log(input.value);
}
</code></pre>

<p>My console tells me, that the number got changed. But the updated value wont be displayed in my input field. Do you have any suggestions?</p>

<p>Thanks in Advance!</p>

<p>L. Trembon</p>