vue-form-wizard
vue-form-wizard copied to clipboard
Async Validation with Router integration
Hi, I am trying to use the asyncValidation https://binarcode.github.io/vue-form-wizard/#/?id=async-validation with the vue-router integration https://jsfiddle.net/bt5dhqtf/267/ .
I really like the router integration because only the current step is actually loaded and rendered.
By the way all of my steps contains a lot of code and validations so i would like to define an asyncValidate function inside each of my steps and call the validation function before-change
as shown here https://binarcode.github.io/vue-form-wizard/#/?id=element-ui-integration
My problem is that using the vue-router integration i don't know how to specify the refs for my steps. Is my approach correct ? If so can you suggest me some way to access the steps using refs?
I made it work like this case https://github.com/BinarCode/vue-form-wizard/issues/245