fix modal

This commit is contained in:
Adam Bradley
2015-06-29 09:26:24 -05:00
parent fe185c56e7
commit 28b77b0fbc
2 changed files with 4 additions and 1 deletions

View File

@ -63,7 +63,7 @@ export class IonicApp {
context, context,
injector); injector);
hostViewRef.elementRef = new ElementRef(hostViewRef, 0); hostViewRef.elementRef = new ElementRef(hostViewRef, 0, viewMngr._renderer);
hostViewRef.instance = viewMngr.getComponent(hostViewRef.elementRef); hostViewRef.instance = viewMngr.getComponent(hostViewRef.elementRef);
hostViewRef.dispose = () => { hostViewRef.dispose = () => {

View File

@ -61,6 +61,9 @@ export class IonicComponent extends Component {
} }
function appendModeConfig(ComponentType) { function appendModeConfig(ComponentType) {
if (!ComponentType) {
return {};
}
if (typeof ComponentType === 'object') { if (typeof ComponentType === 'object') {
return ComponentType; return ComponentType;
} }