I'm testing Laravel 5.4 with Vue Components. But the Problem is Vue Components not displaying in View page.
Here is my Vue File :
ChatMessage.vue
<template>
<div>
<p>Message text is here</p>
<small>Author Name</small>
</div>
</template>
<script>
</script>
<style>
</style>
Here is the blade chat.blade.php
<html>
<head>
<title>Chat Rool</title>
<link rel="stylesheet" href="css/app.css">
</head>
<body>
<div id="app">
<h1>Chat Room</h1>
<chat-message></chat-message>
</div>
<script src="js/app.js" charset="utf-8"></script>
</body>
</html>
Here is my app.js
require('./bootstrap');
Vue.component('chat-message', require('./components/ChatMessage.vue'));
const app = new Vue({
el: '#app'
});
There is no error of loading app.js Because I have checked it's there in view page. Can anyone suggest Me what's the wrong here?