Skip to content
This repository has been archived by the owner on Dec 25, 2017. It is now read-only.

Use parameter for dynamic name if arg is not provided #129

Closed
wants to merge 1 commit into from

Conversation

revati
Copy link

@revati revati commented Jan 12, 2016

Can use validation-name to set dynamic field 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 #46

kazupon added a commit that referenced this pull request Jan 14, 2016
@kazupon
Copy link
Owner

kazupon commented Jan 14, 2016

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. 😸

@kazupon kazupon closed this Jan 14, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Dynamic setting field, how to set up validator
2 participants