I\'m super newbie in vuejs. I don\'t know how to pass props component to root instance Here is my code.
component (Tesvue.vue)
<
A component can not directly pass data back to its parent. This is only possible via events. So for this to work you'd have to emit an event from the child component as soon as its ready and have to listen for that event. In your case its like this:
Component (Tesvue.vue)
Root (app.js)
window.Vue = require('vue');
import tesvue from './components/Tesvue.vue';
var vm = new Vue({
el: '#app',
components: {
tesvue
},
data: {
getname: ''
}
methods: {
changeName(name) {
this.getname = name;
}
}
});
blade file