Answer the question
In order to leave comments, you need to log in
Connecting VUE components in HTML?
Hello! Please tell me - how to connect vue components in a regular html file? For example:
https://vuejsexamples.com/lightweight-and-mobile-f...
This is a calendar. But the connection goes like this:
<template>
<date-pick v-model="date"></date-pick>
</template>
<script>
import DatePick from 'vue-date-pick';
import 'vue-date-pick/dist/vueDatePick.css';
export default {
components: {DatePick},
data: () => ({
date: '2019-01-01'
})
};
</script>
Answer the question
In order to leave comments, you need to log in
in normal html file
<script src="vue-date-pick-master/dist/vueDatePick.js"></script>
<link href="vue-date-pick-master/dist/vueDatePick.css" rel="stylesheet">
components: {
VueDatePick,
},
Vue.component('date-pick', VueDatePick);
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question