[Vuejs]-<v-time-picker> – time picker not working

0👍

This is the Vuetify code for the time picker

<v-time-picker v-model="time" header-color="primary"></v-time-picker>

You must make sure that you have the v-model associated even in the JS, the variable in your JS can be null or string and you can use it for any function.

In your JS it must be like this

data:{
   time: ''(this is most recommended) or time: null
}

0👍

The error message means that you have not imported the component in your file. Another approach is to add vuetify globally to your project. To fix this, add the following line in your main.js/index.js file:

import Vuetify from 'vuetify';
// ...other import statements

Vue.use(Vuetify)

Leave a comment