feat(angular): expose getSelected() (#17079)

fixes #17068
This commit is contained in:
Manu MA
2019-01-14 18:03:44 +01:00
committed by GitHub
parent 8789748334
commit 3c801dbe11
8 changed files with 52 additions and 39 deletions

View File

@ -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() {