I tried to load it via CDN:
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/build.min.js"></script>
<script type="text/javascript">
Vue.use(DatePicker);
var vm = new Vue({
el: '#app',
components: { DatePicker },
data: {
startDate: '',
},
computed: {
},
mounted() {
},
methods: {
}
});
</script>
Then add the following to html:
<date-picker v-model="criteriaStartDate" lang="en" type="datetime" format="yyyy-MM-dd hh:mm:ss" confirm></date-picker>
When I tried to load the page, I saw error message in console:
found in
--->
I really like this tool, but would much appreciate if there is way to use it via CDN.
Vue.use(DatePicker.default);
It works now. Thanks.
Most helpful comment
Vue.use(DatePicker.default);