mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-23 05:58:26 +08:00
refactor(modal): import ElementRef, fix no-implicit-any error
import ElementRef, fix no-implicit-any error
This commit is contained in:
@ -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;
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user