mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-11-10 00:27:41 +08:00
@ -49,12 +49,16 @@ export class Tab implements ComponentInterface {
|
||||
this.active = true;
|
||||
}
|
||||
|
||||
private prepareLazyLoaded(): Promise<HTMLElement | void> {
|
||||
private async prepareLazyLoaded(): Promise<HTMLElement | undefined> {
|
||||
if (!this.loaded && this.component != null) {
|
||||
this.loaded = true;
|
||||
return attachComponent(this.delegate, this.el, this.component, ['ion-page']);
|
||||
try {
|
||||
return attachComponent(this.delegate, this.el, this.component, ['ion-page']);
|
||||
} catch (e) {
|
||||
console.error(e);
|
||||
}
|
||||
}
|
||||
return Promise.resolve();
|
||||
return undefined;
|
||||
}
|
||||
|
||||
hostData() {
|
||||
|
||||
Reference in New Issue
Block a user