I am going through vue 2 laracast videos I am stuck in the 1st tutorial itself.
<div id="app">
<h1>@{{ message }} </h1>
<input type= "text" id="input" v-model = "message">
</div>
<script src="https://cdn.jsdelivr.net/npm/vue"></script>
<script >
var data = {
message: 'Hello Vue!'
}
new Vue({
el: '#app',
data: {
message: 'Hello Vue!'
}
})
</script>
don't work, gives an error
Use of undefined constant message - assumed 'message'
@{{ message }}
gives me the result then proceeding to v-model gives an empty input box no message.