Vuejs . What do $v And $event denotes in Vuejs?
Asked Answered
P

2

17

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.

Perlis answered 15/1, 2018 at 12:6 Comment(1)
I don't know about $v, but have you read vuejs.org/v2/guide/events.html ?Prut
O
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

Onestep answered 7/10, 2018 at 20:6 Comment(0)
D
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

Diatonic answered 18/5, 2020 at 14:51 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.