I am trying to create a VueJS application, but I fail even with the simplest examples. I am using Laravel 5.3 with pre-installed VueJS support (version 1, I also tried version 2).
Here is my component Example.vue
<template>
<div class="profile">
{{ name }}
</div>
</template>
<script>
export default {
data () {
return {
name: 'John Doe'
}
}
}
</script>
And here is the main code
Vue.component('example', require('./components/Example.vue'));
const app = new Vue({
el: '#app'
});
This is an error that appears every time in the console:
[Vue warn]: The property or method name is not specified in the instance, but is referenced during rendering. Be sure to declare the properties of the reactive data in the data option. (found in component)
Any ideas on something wrong? Thanks
source
share