In Ionic how do I input field only receive numbers? I want an old field and I want to make sure I only accept numbers, forbidding the user from typing letters.
In Ionic how do I input field only receive numbers? I want an old field and I want to make sure I only accept numbers, forbidding the user from typing letters.
You can use type="number"
in <ion-input>
.
<ion-item>
<ion-input type="number" placeholder="Informe um número"></ion-input>
</ion-item>