(container: HTMLElement)
| 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 |