S
S
symnoob2018-06-24 20:43:53
Vue.js
symnoob, 2018-06-24 20:43:53

Can anyone help me get the Calendar up and running on vue?

Hello Forum,
can anyone help me to launch Calendar on vue?
This is the Calendar:

https://krystalcampioni.github.io/vue-hotel-datepicker/#gettingStarted

My actions:
downloaded the project, copied the dist folder
in the HTML file, wrote the following:
<div id="app">
                <HotelDatePicker/></HotelDatePicker>
</div>

<script src="https://cdn.jsdelivr.net/npm/vue"></script>
    <script src="assets/vue-hotel-datepicker-master/dist/vue-hotel-datepicker.min.js" type="module"></script>
    <script src="assets/vue-hotel-datepicker-master/dist/start.js"></script>

Start.js content:
import HotelDatePicker from 'vue-hotel-datepicker'

export default {
    components: {
        HotelDatePicker,
    },
}

can anyone tell me how it works

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vitaly Stolyarov, 2018-06-24
@Ni55aN

Start.js is going to be something? Judging by the c block <script>, it's not going to, so import/export won't work right away in the browser.
The solution is to create a project with vue-cli (webpack) as they usually do, and not know such problems

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question