Skip to content

CDN globalΒ #13

@amchconsult

Description

@amchconsult

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions