What I am trying to do is this:
validateStep(stepNumber) {
const self = this;
this.$v.registration_step${stepNumber}.touch()
if (this.$v.registration_step${stepNumber}.$error) {
this.$q.notify('Controleer aub de velden opnieuw');
return;
}
self.$refs.stepper.next();
},
But this isn't working. As you can see I want to call .touch() on a dynamic variable depending on what step the user is currently in (so it would become this.$v.registration_step1.touch() if the user is currently in step 1.
How would you do this?