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

Method init

core/src/components/nav/view-controller.ts:21–34  ·  view source on GitHub ↗
(container: HTMLElement)

Source from the content-addressed store, hash-verified

19 constructor(public component: any, public params: ComponentProps | undefined) {}
20
21 async init(container: HTMLElement) {
22 this.state = VIEW_STATE_ATTACHED;
23
24 if (!this.element) {
25 const component = this.component;
26 this.element = await attachComponent(
27 this.delegate,
28 container,
29 component,
30 ['ion-page', 'ion-page-invisible'],
31 this.params
32 );
33 }
34 }
35
36 /**
37 * DOM WRITE

Callers 2

onCreateMethod · 0.80
runTransitionMethod · 0.80

Calls 1

attachComponentFunction · 0.90

Tested by 1

onCreateMethod · 0.64