I’m using a standard <script> tag to load ionic. I have an <ion-input> and I want to get hold of the input element using getInputElement().
If I do document.getElementById(‘myIonicInput’) I see this
<ion-input>
</ion-input>
Only after ionic finishes loading do I see
<ion-input>
<input ....>
</ion-input>
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?