Form Validator + Vue.js

https://vuejs.org/
Post Reply
drodriguez
Posts: 44
Joined: Wed Apr 11, 2018 7:32 pm
Status: Offline

Form Validator + Vue.js

Post by drodriguez » Thu Aug 02, 2018 3:40 pm

How can i combine Form Validator + Vue.js?

if form is invalid
fire data-on-error-form event
but also fire submit button v-on:click (wrong)


the submit button v-on:click only must fire when Form Validator is valid.


codepen test: https://codepen.io/drodriguez/pen/PBebgV

thanks

drodriguez
Posts: 44
Joined: Wed Apr 11, 2018 7:32 pm
Status: Offline

Post by drodriguez » Thu Aug 02, 2018 8:39 pm

update my code and work :)

data-on-validate-form="app.submit" //app is vue instance and submit is a method)

Post Reply