Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Vuejs 2 + form validation [closed]

Tags:

Since vue-validator https://github.com/vuejs/vue-validator is being ready for Vuejs 2, what is the best way to implement frontend validation?

UPDATE I've found this awesome plugin Vee Validate

like image 349
Tiago Matos Avatar asked Oct 24 '16 02:10

Tiago Matos


1 Answers

In my opinion, a good way to implement front end validation for VueJS is to use vuelidate.

It's very simple to use and powerful. It offers model-base validation, it means that it's what you define in data that is validated, so it's totally decoupled from the templates. It comes with common built-in validators for email , min and max length or required. And many others.

like image 194
jpeg Avatar answered Sep 16 '22 15:09

jpeg