Frank7390035
Posts: 0
Joined: Thu Feb 19, 2015 1:37 am

how to determine when content is loaded

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

Serhii Kulibaba
Posts: 150
Joined: Tue Aug 27, 2013 1:47 pm

how to determine when content is loaded

Hello Frank,

What content do you mean, HTML components or images, videos, etc.?

Frank7390035
Posts: 0
Joined: Thu Feb 19, 2015 1:37 am

how to determine when content is loaded

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

Serhii Kulibaba
Posts: 150
Joined: Tue Aug 27, 2013 1:47 pm

how to determine when content is loaded

Please use the event "Page show" for that.

Frank7390035
Posts: 0
Joined: Thu Feb 19, 2015 1:37 am

how to determine when content is loaded

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

Serhii Kulibaba
Posts: 150
Joined: Tue Aug 27, 2013 1:47 pm

how to determine when content is loaded

Please look at the topic with the similar question to get the solution: https://stackoverflow.com/questions/2...

Frank7390035
Posts: 0
Joined: Thu Feb 19, 2015 1:37 am

how to determine when content is loaded

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

Return to “Issues”