i want to call a method in typescript, whenever ion-list loads, how to do that, anyone has any idea
1 Like
Hi, @codetoaj
You can call the function inside ionViewDidLoad lifecycle event given by ionic
Hope, this will solve your issue
Thanks,
Actually i want to call it when particular div or ion-list loads not for entire page,
will ionViewDidLoad match my scenario
That’s really counter to the way Angular thinks. Can you describe in larger terms what you’re trying to achieve? Perhaps it can be done in more idiomatic fashion.
<div onload=“test()”> alternate in ionic
Please post answer when you get one cause i am facing the same issue