diff --git a/src/components/modal/modal.ts b/src/components/modal/modal.ts index 8f1db621b3b..803a137fd33 100644 --- a/src/components/modal/modal.ts +++ b/src/components/modal/modal.ts @@ -1,4 +1,4 @@ -import {Component, ComponentRef, DynamicComponentLoader, ViewChild, ViewContainerRef} from '@angular/core'; +import {Component, ComponentRef, ElementRef, DynamicComponentLoader, ViewChild, ViewContainerRef} from '@angular/core'; import {addSelector} from '../../config/bootstrap'; import {Animation} from '../../animations/animation'; @@ -171,7 +171,7 @@ export class ModalCmp { let componentType = this._navParams.data.componentType; addSelector(componentType, 'ion-page'); - return this._loader.loadNextToLocation(componentType, this.viewport).then(componentRef => { + return this._loader.loadNextToLocation(componentType, this.viewport).then( (componentRef: ComponentRef) => { return componentRef; }); }