vue-form-wizard icon indicating copy to clipboard operation
vue-form-wizard copied to clipboard

Async Validation with Router integration

Open apellizzn opened this issue 6 years ago • 1 comments

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?

apellizzn avatar Jan 29 '19 14:01 apellizzn

I made it work like this case https://github.com/BinarCode/vue-form-wizard/issues/245

Perezmarc avatar Feb 19 '20 16:02 Perezmarc