Ionic input, just numbers

0

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.

    
asked by anonymous 26.09.2018 / 04:51

1 answer

0

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

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