18

What do $v and $event denote in Vue.Js? What and in which situations do we use these. Please elaborate in detail with examples too.

1

2 Answers 2

27

$v refers to Vuelidate's special object used for storing validation states. Read more here: https://github.com/vuelidate/vuelidate

If you have $v in your HTML codes, definitely, the code makes use of Vuelidate for form validations.

$event is a special object used to store and retrieve events by Vue.js. Read more here: https://v2.vuejs.org/v2/guide/events.html

Sign up to request clarification or add additional context in comments.

Comments

5

$v is an object that calls vuelidate (at the time of writing the comment, supported in version Vue.js 2.0), which is intended to check every input, which is made in a non-html form.

Official: https://vuelidate.js.org/

Github: https://github.com/vuelidate/vuelidate

Custom vue js validation: https://v2.vuejs.org/v2/cookbook/form-validation.html

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.