ionViewDidLoad in component?

Hi,

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 ?

Jerome.

I solved my problem using the Events system.

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

1 Like

I just use the angular 2 default ngOnInit:
https://angular.io/docs/ts/latest/guide/lifecycle-hooks.html

2 Likes

ngAfterViewInit
sounds good in this case

2 Likes