Я пытаюсь добавить VueJS в мое приложение Laravel, но мой первый компонент не отображается на моей странице.
Как вы можете видеть на исходной странице, мы можем видеть компонент "login".![enter image description here](https://i.stack.imgur.com/gjhKK.png)
И это ассоциированный код:
<template>
<p>Coucou je suis un élément Vue.JS</p>
</template>
<script>
export default {
name: "login"
}
</script>
<style scoped>
</style>
Это просто простой компонент, отображающий строку.
Здесь у вас естьapp.js
/**
* First we will load all of this project's JavaScript dependencies which
* includes Vue and other libraries. It is a great starting point when
* building robust, powerful web applications using Vue and Laravel.
*/
require('./bootstrap');
window.Vue = require('vue');
/**
* Next, we will create a fresh Vue application instance and attach it to
* the page. Then, you may begin adding components to this application
* or customize the JavaScript scaffolding to fit your unique needs.
*/
Vue.component('example-component', require('./components/ExampleComponent.vue'));
Vue.component('login', require('./components/Auth/Login.vue'));
const app = new Vue({
el: '#app'
});
Но моя проблема заключается в том, что на html-странице ничего не появляется: / Она полностью пуста ...
![enter image description here](https://i.stack.imgur.com/ojgkl.png)
Если кто-то может объяснить, что не так, это будет так ценно.Спасибо заранее.