Menu

Vue Js & v-validate – validating a list (collection) on client side

v-validate is one of the best validation plugins out there for Vue js, if you are looking to validate a list inside the form you can use below snippet.

Above snippet demonstrates how you can validate a simple text box vs a dropdown list. pretty easy hey!!!

the trick is :name=”any-array[${index}].MyProperty (material[${index}].Title), you need to have an array and index is already part of the v-for.

Leave a comment