Quantcast
Channel: Ionic Framework - Ionic Forum
Viewing all articles
Browse latest Browse all 49263

Vanilla JS - wait for component to load

$
0
0

I’m using a standard tag to load ionic. I have an and I want to get hold of the input element using getInputElement().

It seems Ionic loads the components scripts async so even after the DOM has loaded I still need to wait for ionic to load before I can get the input element. The global Ionic object is not even initially available after DOM loaded.

So, does Ionic have an event/means of notifying when components have loaded or do I need to create a check that will just loop until Ionic is available?

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 49263


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>