Page 1 of 1
how to determine when content is loaded
Posted: Wed Mar 07, 2018 8:40 pm
by Frank7390035
i have an app that shows some content in an html component inside a modal.
I would need to execute a function after this content has been loaded.
I can't figure out what function to use to signal that the html component content has completed loading.
What do you suggest?
Thanks
how to determine when content is loaded
Posted: Fri Mar 09, 2018 8:19 am
by Serhii Kulibaba
Hello Frank,
What content do you mean, HTML components or images, videos, etc.?
how to determine when content is loaded
Posted: Sun Mar 11, 2018 12:45 pm
by Frank7390035
Hi Serhii,
Thanks for your reply. The content is shown in an HTML component (it's just HTML text) when I open a certain page. I would need to execute a function after this content has been loaded.
Thanks for your help,
Frank
how to determine when content is loaded
Posted: Sun Mar 11, 2018 4:21 pm
by Serhii Kulibaba
Please use the event "Page show" for that.
how to determine when content is loaded
Posted: Sun Mar 11, 2018 7:47 pm
by Frank7390035
Hi Serhii,
Because this is a ionic app, I don't have a "page show" event as in the jquery app.
If it exists, where do I find such event?
Thanks,
Frank
how to determine when content is loaded
Posted: Sun Mar 11, 2018 9:29 pm
by Serhii Kulibaba
Please look at the topic with the similar question to get the solution: https://stackoverflow.com/questions/2...
how to determine when content is loaded
Posted: Mon Mar 12, 2018 12:41 am
by Frank7390035
thanks for your help.
This worked:
add ng-show
set ng-show to a custom function e,g, render()
return true at the end of the render function