Quantcast
Channel: Ionic Forum - Latest topics
Viewing all articles
Browse latest Browse all 70434

Events Broadcasting in ionic5

$
0
0

@elduderino15 wrote:

I am migrating my app from Ionic3 to 5.
First blocker I am finding is the events pipeline

I use events in the app for sending signals between views with Events. Now events is removed in 5 and I am looking for an alternative. How can I broadcast events in one view / page and create listeners for that specific message in others?

My previous code was similar to

  this.events.subscribe('system:phoneInfo', (systemInfo: string) => {
    Logger._phoneInfoString = systemInfo;
  });

where any view could call system:phoneInfo and the subscriber would do as said. My head does not wrap around how to distribute this over multiple views.

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 70434

Trending Articles



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