kazupon / vue-validator

:white_check_mark: Validator component for Vue.js
MIT License
2.19k stars 431 forks source link

camelCase in v-validate argument #102

Closed bradstewart closed 8 years ago

bradstewart commented 8 years ago

It seems most (all?) of Vue automatically converts kebab-cased HTML attributes to camelCased JavaScript properties.

Should the router convert something like v-validate:my-property.required to $validator.myProperty for consistency? This doesn't happen currently.

kazupon commented 8 years ago

Thank you for your feedback.

I'll try to support Vue-like automatically conversion.