fix(angular): overlay not found

fixes #15349
This commit is contained in:
Manu Mtz.-Almeida
2018-08-29 01:13:19 +02:00
parent 57d2f578aa
commit 8dfc52f63d
10 changed files with 17 additions and 17 deletions

View File

@@ -30,7 +30,7 @@ export class LoadingController implements OverlayController {
* Get the most recently opened loading overlay.
*/
@Method()
async getTop(): Promise<HTMLIonLoadingElement> {
async getTop(): Promise<HTMLIonLoadingElement | undefined> {
return getOverlay(this.doc, 'ion-loading') as HTMLIonLoadingElement;
}
}