I am trying to get the HTML input to be reflected in the Vue dev tool panel and in the console but none of them are working.
my blade file contains this code.
<!DOCTYPE html>
<html lang="en" dir="ltr">
<head>
<meta charset="utf-8">
<meta name="csrf-token" content="{{ csrf_token() }}">
<link rel="stylesheet" href="{{ asset('css/app.css') }}">
<title>Chat Room</title>
</head>
<body>
<div class="container" id="app">
<div class="row">
<ul class="list-group offset-4 col-4">
<li class="list-group-item active">Chat Room</li>
<input type="text" class="form-control" placeholder="Type your
message here" v-model="text" @keyup='send'></input>
</ul>
</div>
</div>
{{-- <script src="{{ asset('js/app.js') }}"></script> --}}
</body>
</html>
The app.js is like this.
require('./bootstrap');
window.Vue = require('vue');
Vue.component('message', require('./components/message.vue'));
const app = new Vue({
el: '#app',
data: {
text:''
},
method:{
send(){
console.log(this.message);
}
}
});
The thing is i am not getting any error but the binding is also not working. I am looking for the input text in the html to be displayed in the console and vue panel data array.