I am beginner to vue js, not sure i am asking correct or not.
I want to make following type of structure for my Laravel 5.3 - Vue Js App.
my-vue.js
 Vue.component('my-component', {
        template: 'template from Catgory.Vue'
 })
 new Vue({
    el: '#example'
 })
Category.vue
<template>
    <div>
        // some code goes here
    </div>
</template>
index.blade.php
<div id="example">
   <my-component></my-component>
</div> 
How can i use template from Category.vue in template attribute of Vue.component? Or Suggest me better approach.
This link can be useful
 Vue.component('my-component', {
   template: require('./Category.html')
 });
 new Vue({
     el: '#example'
 })
Category.html.js
module.exports = `<div>Hello, {{ name }}!</div>`;
                        If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With