ionViewDidLoad in component?



I would like to detect when the view (and so the component) is loaded from within the component’s TS.

ionViewDidLoad and ionViewDidEnter work fine in a page but they do not seem to work in a component.

Is there a way to detect when a component did load ?



I solved my problem using the Events system.

But I am still wondering if there is dedicated function I have missed in the documentation.


I just use the angular 2 default ngOnInit:


sounds good in this case