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

Ionic 4 - Listening to View Did Enter in Component

$
0
0

@karvanj wrote:

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?

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 49299


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