Ionic input, only numbers

Asked

Viewed 255 times

0

In Ionic how do I make an input field only receive numbers ? I want an old field and I want to make sure you accept only numbers, prohibiting the user from typing letters.

1 answer

0


You can use type="number" in the <ion-input>.

<ion-item>
    <ion-input type="number" placeholder="Informe um número"></ion-input>
</ion-item>

Browser other questions tagged

You are not signed in. Login or sign up in order to post.