Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I am unable to make child to parent communication #242

Open
Kuchiriel opened this issue Dec 3, 2017 · 1 comment
Open

I am unable to make child to parent communication #242

Kuchiriel opened this issue Dec 3, 2017 · 1 comment

Comments

@Kuchiriel
Copy link

Kuchiriel commented Dec 3, 2017

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
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants