jeudi 28 février 2019

vue component not compiling on laravel app

I have a laravel app not compiling new created vue i have created Abc/abc.vue file and abc-components.js file followed every thing as guided.

npm run watch

command not showing this component all other components compiling properly.

abc.vue

<template>
<h1>ap navbar component</h1>
<h3></h3>
</template>
<script>
export default {
    data() {
        return {
            message: 'test message'
        }
    },
    mounted() {
        console.log("apnavbarcomponent mounted");
    }
}
</script>

abc-components.js

window.Vue = require('vue');
Vue.component('hbabc', require('./components/abc/abc.vue').default);

const app = new Vue({
    el: '#app',
});



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire