Ionic 4 - Listening to View Did Enter in Component


#1

In Ionic 3 I would listen to the viewDidEnter in a page sub-component by subscribing to navCtrl in my component constructor as follows:

 this.navCtrl.viewDidEnter.subscribe = (view) => {
        if(((view.component === ActionPage) {
               // Do something
        }         
    };
    this.navCtrl.viewDidEnter.subscribe('view:did-enter', this.subViewDidEnter);

But in Ionic 4 I can no longer access viewDidEnter. Does anyone one know how would I do this now?


#2

Hi,

Take a look at this:


#3

Thanks I was hoping I could listen to DidEnter event via navCtrl in the child component but I looks its no longer available. Will need to consider work around now