Broadcast / Emit event on one Component, listen on another

Posted 3 years ago by domioanna

I have 2 (unrelated) components that are being loaded on one page and I need a method on Component A to broadcast an event which Component B can catch and run it's own logic when it's fired.

Is it possible to use something like this.$broadcast or this.$emit on one component and have another (unrelated) component listen for when it's called?

If so, how?

Please sign in or create an account to participate in this conversation.

Reply to

Use Markdown with GitHub-flavored code blocks.