Page 1 of 1

Form Validator + Vue.js

Posted: Thu Aug 02, 2018 3:40 pm
by drodriguez
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

Re: Form Validator + Vue.js  

Posted: Thu Aug 02, 2018 8:39 pm
by drodriguez
update my code and work :)

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