Quantcast
Channel: Ionic Framework - Ionic Forum
Viewing all articles
Browse latest Browse all 49083

Communicating between 2 components

$
0
0

I’m fairly new to Vue, so hopefully I’m asking this the correct way.

I want to emit an event and have a different component (NOT the parent) listen for that emit and do something. I know this was possible with Vue 2 with $on, but not possible in Vue 3.

I’ve tried reading Vue 3 docs, but they only talk about parent->child and child->parent not child->child. I also looked in mitt https://github.com/developit/mitt, but that doesn’t seem to work in Ionic Vue.

Has anybody run into this with Ionic Vue and know a solution?

2 posts - 2 participants

Read full topic


Viewing all articles
Browse latest Browse all 49083

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>