Skip to content

Commit

Permalink
Merge pull request #6736 from driftyco/fix/modal-import-and-no-implic…
Browse files Browse the repository at this point in the history
…it-any

refactor(modal): import ElementRef, fix no-implicit-any error
  • Loading branch information
brandyscarney committed Jun 2, 2016
2 parents c59c656 + d26e3ae commit c42bf97
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/modal/modal.ts
Original file line number Diff line number Diff line change
@@ -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';
Expand Down Expand Up @@ -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<any>) => {
return componentRef;
});
}
Expand Down

0 comments on commit c42bf97

Please sign in to comment.