hrvoje-grabusic
10/20/2019 - 5:40 PM

New vue component HTML template

<script type="text/x-template"  id="tpl-newcomponent">
    <div>

    </div>
</script>
<script>
    Vue.component('newcomponent', {
        template: "#tpl-newcomponent",
        props: ['value'],
        data: function () {
            return {

            }
        },
        methods: {

        }
    })
</script>