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

Method prepareLazyLoaded

core/src/components/tab/tab.tsx:64–74  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

62 }
63
64 private prepareLazyLoaded(): Promise<HTMLElement | undefined> {
65 if (!this.loaded && this.component != null) {
66 this.loaded = true;
67 try {
68 return attachComponent(this.delegate, this.el, this.component, ['ion-page']);
69 } catch (e) {
70 printIonError('[ion-tab] - Exception in prepareLazyLoaded:', e);
71 }
72 }
73 return Promise.resolve(undefined);
74 }
75
76 render() {
77 const { tab, active, component } = this;

Callers 2

setActiveMethod · 0.95
changeActiveMethod · 0.95

Calls 2

attachComponentFunction · 0.90
printIonErrorFunction · 0.90

Tested by

no test coverage detected