How to validate forms inside vuetify stepper using vee-validate
Assuming that e1
is your v-model for stepper :
I think you can factorise your submitForm
function, like this :
methods: { submitForm(scope) { debugger; this.$validator.validateAll(scope).then(result => { if (result) { this.e1++; } }); }, goBack(){ this.e1-- }}
Just call it like this in your html :
@click.native="submitForm('yourFormScopeName')"
And you can bind goBack
method on an other button or wathever you want