I'm getting used to Vue.js but seem to stumble on the basics here...
I use Laravel 5.4 which has Vue.js included, so I got this code in my view:
<form class="form-horizontal" role="form" method="POST" action="{{ route('login') }}" id="loginform">
<div class="field columns">
<p class="control column is-half">
<a class="button is-success is-fullwidth">Login</a>
</p>
<p class="control column is-half">
<input type="text" v-model="rememberme" name="remember">
<a class="button is-light is-fullwidth"><span class="fa fa-square-o fa-vertical-middle fa-has-margin fa-force-1rem"></span>Remember me</a>
</p>
</div>
<script>
new Vue({
el:'#loginform',
data: {
rememberme: 1
}
});
</script>
But no matter what I do, I always get
app.js:19558 [Vue warn]: Property or method "rememberme" is not defined on the instance but referenced during render. Make sure to declare reactive data properties in the data option.
So I was checking google and reviewed some online tutorials, but I still got that problem.
In my layout I've loaded the app.js before the script-section, so Vue.js is actually there.
http://moya.local/js/app.jsfile contains a Vue instance bound to the #app div?