vue-bulma / vue-admin

We are refactoring it, using the latest Vue and Bulma. WIP
9.43k stars 1.61k forks source link

I am unable to make child to parent communication #242

Open Kuchiriel opened 6 years ago

Kuchiriel commented 6 years ago

Hello guys, thanks for this amazing dashboard.

I am using some of the modals available, and passing information from parent to child normally using props, but, when I try to do the oposite, with $emit, it didn't work. I've tried $root.$emit, $parent.$emit, tried to catch the $emit in the template using @event and with $on as well, without success.

Maybe I am missing something, any thoughts?

PewQuadrat commented 6 years ago

You could use this: https://vuejs.org/v2/guide/components.html#Non-Parent-Child-Communication

Or use Vuex as state management as the eventbus will increase maintenance when your application will grow bigger.