M
M
Maxim Kalinin2020-08-12 21:10:23
JavaScript
Maxim Kalinin, 2020-08-12 21:10:23

How to make input date required for input (Vue + vuelidate)?

<input v.model="$v.date.$model" :class="status($v.date)" type="date" />

validations:{
date: {
}
}

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexey Yarkov, 2020-08-12
@MaximAr1es

import { required } from 'vuelidate/lib/validators'

validations:{
  date: {
    required
  }
}

Read first , then use.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question