Quantcast
Channel: Ionic Forum - Latest posts
Viewing all articles
Browse latest Browse all 230188

Help Using EventEmitter with Tabs Component

$
0
0

When I started out, I was attempting to use the event emitters to emit from (for example) tab 3, to the tabs or app router in order to make a change.

Having taken a step back and re-assessed, it’s clear that this can’t be done as the tabs component isn’t actually the parent of tab1, tab2 or tab3.

Instead, I’ve implemented a service to handle the communication between the components.

The goal initially was to emit from the child (tab3) to the parent (tabs). But as stated, the tabs component isn;t actually the parent and a service was the better choice.


Viewing all articles
Browse latest Browse all 230188

Trending Articles



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