I\'m currently trying to create a Registration form with multiple \"Input Field\" components which all require validating once Submit has been pressed. They all currently va
I had to use a promise to check validation before submitting form.
Code below from @ChalkyJoe original question
module.exports = {
methods: {
submitForm() {
//this.$validator.validateAll();
this.$validator.validateAll().then((result)=>{
if(!result){
error();
}
submit();
})
}
},
data() {
return {
email: '',
confirm_email: ''
};
},