From 28b77b0fbce19c558fd5b4ed59d453b12072a339 Mon Sep 17 00:00:00 2001 From: Adam Bradley Date: Mon, 29 Jun 2015 09:26:24 -0500 Subject: [PATCH] fix modal --- ionic/components/app/app.js | 2 +- ionic/config/annotations.js | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/ionic/components/app/app.js b/ionic/components/app/app.js index 94c539d4b7..4f02d00b4f 100644 --- a/ionic/components/app/app.js +++ b/ionic/components/app/app.js @@ -63,7 +63,7 @@ export class IonicApp { context, injector); - hostViewRef.elementRef = new ElementRef(hostViewRef, 0); + hostViewRef.elementRef = new ElementRef(hostViewRef, 0, viewMngr._renderer); hostViewRef.instance = viewMngr.getComponent(hostViewRef.elementRef); hostViewRef.dispose = () => { diff --git a/ionic/config/annotations.js b/ionic/config/annotations.js index 3479ef1d1d..a2575e0e52 100644 --- a/ionic/config/annotations.js +++ b/ionic/config/annotations.js @@ -61,6 +61,9 @@ export class IonicComponent extends Component { } function appendModeConfig(ComponentType) { + if (!ComponentType) { + return {}; + } if (typeof ComponentType === 'object') { return ComponentType; }