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

Ionic 4 how to listen to ionNavDidChange

$
0
0

@hkjeffchan wrote:

(1) PageA => (2) PageB (Press nav-back-button) => (3) PageA

I want to listen to the event when 3 is finished, it should be ionNavDidChange, right?

I tried to do something like this in PageA but failed. Any idea?

  constructor(private events: Events) {
    this.events.subscribe('ionNavDidChange', () => {
      console.log('ionNavDidChange');
    });
  }

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 70616

Trending Articles



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