The tag name of the element to wait for (e.g. 'pc-app').
A promise that resolves with the element once it's ready.
Waits for the given element to be fully initialized. Note that the promise never settles if the element cannot finish initializing (for example, an element that is never added to the document).
The element to wait for.
A promise that resolves with the element once it's ready.
Waits for the first element matching the given CSS selector to be fully initialized. Note that
the promise never settles if the element cannot finish initializing (for example, a <pc-script>
that is not a direct child of <pc-scripts>). A component element outside a <pc-entity> is
the exception: it still becomes ready, but its component is null. Either way, a misplaced
element logs a warning naming the parent it requires.
A CSS selector matching the element to wait for (e.g. '#my-app').
A promise that resolves with the element once it's ready.
Waits for the first element matching the given tag name to be fully initialized. Note that the promise never settles if the element cannot finish initializing (for example, a
<pc-script>that is not a direct child of<pc-scripts>). A component element outside a<pc-entity>is the exception: it still becomes ready, but itscomponentisnull. Either way, a misplaced element logs a warning naming the parent it requires.