Closed revati closed 8 years ago
Can use validation-name to set dynamic field name
validation-name
<validator name="validation1"> <input v-validate="['required']" :validation-name="fieldName"> <span v-show="$validation1[fieldName].required">Required your name.</span> </validator>
This can fix https://github.com/vuejs/vue-validator/issues/46
Thank you for pull request.
I've published the now. https://github.com/vuejs/vue-validator/releases/tag/v2.0.0-alpha.11
Please try it. :smile_cat:
Can use
validation-name
to set dynamic field nameThis can fix https://github.com/vuejs/vue-validator/issues/46