IONIC - CHECK IF AN IFRAME HAS BEEN CHARGED 100%

0

I'm incorporating an iframe with a google maps link within my ionic application, how do I check if the frame has been uploaded 100%? Well, depending on the user's internet connection, it may take a few seconds to load and during those seconds I would like to take an action.

    
asked by anonymous 28.06.2018 / 16:47

1 answer

0

You can use the angular event-bind: (load)="RunOnOnCurrentOn ()"

As in the example below:

<iframe name="chatFrame" src="http://..."(load)="dismissLoading()"></iframe>

The function that is indicated in the load will be executed at the end of loading

    
29.06.2018 / 23:14