mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-18 19:21:34 +08:00
fix(overlay): pass ChangeDetectorRef to NavController
This commit is contained in:
@ -1,4 +1,4 @@
|
||||
import {Component, ElementRef, Compiler, DynamicComponentLoader, AppViewManager, NgZone, Renderer} from 'angular2/angular2';
|
||||
import {ChangeDetectorRef, Component, ElementRef, Compiler, DynamicComponentLoader, AppViewManager, NgZone, Renderer} from 'angular2/angular2';
|
||||
|
||||
import {IonicApp} from '../app/app';
|
||||
import {Config} from '../../config/config';
|
||||
@ -23,9 +23,11 @@ export class OverlayNav extends NavController {
|
||||
loader: DynamicComponentLoader,
|
||||
viewManager: AppViewManager,
|
||||
zone: NgZone,
|
||||
renderer: Renderer
|
||||
renderer: Renderer,
|
||||
cd: ChangeDetectorRef
|
||||
) {
|
||||
super(null, app, config, keyboard, elementRef, compiler, loader, viewManager, zone, renderer);
|
||||
super(null, app, config, keyboard, elementRef, compiler,
|
||||
loader, viewManager, zone, renderer, cd);
|
||||
|
||||
if (overlayCtrl.anchor) {
|
||||
throw ('An app should only have one <ion-overlay></ion-overlay>');
|
||||
|
Reference in New Issue
Block a user