[Vuejs]-Vue.js – Event does not trigger child component to show requested data in table

1👍

This looks like a scope issue. this.eventFromApp doesn’t exist in App.vue. Move everything form HelloWorld.vue into App.vue and it should work. As it is right now, your methods in App.vue have no way of communicating with the JD-Table component.

If you want to separate your button to JD-Table component then you need to have the click pass the data via a prop to the HelloWorld.vue component which would then send it to JD-Table.

Leave a comment