Check out this code snippet:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Vue</title>
</head>
<body>
<div id="root">
<input v-model="message" placeholder="Msg">
<p>The message you typed is: {{ message }}</p>
</div>
<script src="https://unpkg.com/<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="8afcffefcab8a4bca4bbba">[email protected]</a>/dist/vue.js"></script>
<script>
new Vue({
data: {
el: '#root',
message: ''
}
});
</script>
</body>
</html>
Curious why the binding isn't working? I followed a tutorial here:
https://laracasts.com/series/learn-vue-2-step-by-step/episodes/1 .
Appreciate any help. Thanks!