q-datetime
-
Hello, I get the following error when I try to use q-datetime component:
[Vue warn]: Missing required prop: “value”
(found in component <q-inline-datetime>)My template looks like this:
<q-datetime
v-model=“model”
type=“date”</q-datetime>
and the js:
import moment from ‘moment’
// …
export default {
data () {
return {
model: moment().format(),
// …
}
},
// …
} -
It looks ok to me, is this in a single vue file ?
-
yes, it’s a.vue file. q-datetime is the only component that doesn’t work.
-
I guess
vue-loader
would complain if the html is not valid, but this is the only thing i can come up with. Have you looked at therender
function output the loader generates ?