vendredi 30 novembre 2018

Can I execute a method when an input box gets to a certain length?

I have an input box that takes a string. Can I execute a method (in vue.js) when the length of the string gets to a certain number?

something like

<input v-if="inputBox.length == 6 THEN runme()"...>

Aucun commentaire:

Enregistrer un commentaire