refactor(modal): import ElementRef, fix no-implicit-any error

import ElementRef, fix no-implicit-any error
This commit is contained in:
Dan Bucholtz
2016-06-02 10:05:59 -05:00
parent c59c65647d
commit d26e3aee58

View File

@ -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 {addSelector} from '../../config/bootstrap';
import {Animation} from '../../animations/animation'; import {Animation} from '../../animations/animation';
@ -171,7 +171,7 @@ export class ModalCmp {
let componentType = this._navParams.data.componentType; let componentType = this._navParams.data.componentType;
addSelector(componentType, 'ion-page'); addSelector(componentType, 'ion-page');
return this._loader.loadNextToLocation(componentType, this.viewport).then(componentRef => { return this._loader.loadNextToLocation(componentType, this.viewport).then( (componentRef: ComponentRef<any>) => {
return componentRef; return componentRef;
}); });
} }