Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CDN global #13

Open
amchconsult opened this issue Apr 20, 2021 · 0 comments
Open

CDN global #13

amchconsult opened this issue Apr 20, 2021 · 0 comments

Comments

@amchconsult
Copy link

amchconsult commented Apr 20, 2021

can you give an example?

by your tutorial is not working!

I have try:

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>vue-timeselector</title>
</head>
<body>
<div id="app">
    <timeselector v-model="selectedTime" :h24="false"></timeselector>
</div>
<script type="text/javascript" src="vue-timeselector/dist/VueTimeSelector.js"></script>
<script src="https://cdn.jsdelivr.net/npm/vue@2/dist/vue.js"></script>
<script type="text/javascript">
    // Vue.use("VueTimeSelector");
    // Vue.component('timeselector', VueTimeSelector);
    Vue.component("timeselector", window["vue-timeselector"]);
    var vm = new Vue({
        el: '#app',
        // components: { Timeselector },
        data: {
            selectedTime:"",
        },
        methods: {
            
        },
    })

</script>
</body>
</html>

thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant