MCPcopy Index your code
hub / github.com/ionic-team/ionic-framework / attachViewToDom

Function attachViewToDom

core/src/utils/overlays.ts:913–923  ·  view source on GitHub ↗
(component?: any)

Source from the content-addressed store, hash-verified

911 * @param component The component to optionally construct and append to the element.
912 */
913 const attachViewToDom = async (component?: any) => {
914 const { delegate } = getDelegate(true);
915 if (delegate) {
916 return await delegate.attachViewToDom(ref.el, component);
917 }
918 const { hasController } = ref;
919 if (hasController && component !== undefined) {
920 throw new Error('framework delegate is missing');
921 }
922 return null;
923 };
924
925 /**
926 * Moves a component back to its original location in the DOM.

Callers

nothing calls this directly

Calls 2

getDelegateFunction · 0.85
attachViewToDomMethod · 0.65

Tested by

no test coverage detected