How do I access a variable in an Async validation with Vuelidate

399 views Asked by At

I'm trying to use a value in an async method that is updated in another method. However whatever I try to get the value in the async method it either ends up equalling null or I get TypeError: Cannot read property '__isVuelidateAsyncVm' of undefined.

How do I access validationcode when its updated in my verifyNumber method and use it in my validateAsync method?

var validationcode = this.validationcode;
validationcode = true;

https://jsfiddle.net/q5gathv2/2/

0

There are 0 answers