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; }