Files
2015-11-23 12:21:47 -06:00

38 lines
1.0 KiB
TypeScript

import {Component, ElementRef, Compiler, DynamicComponentLoader, AppViewManager, NgZone, Renderer} from 'angular2/angular2';
import {IonicApp} from '../app/app';
import {Config} from '../../config/config';
import {Keyboard} from '../../util/keyboard';
import {OverlayController} from './overlay-controller';
import {NavController} from '../nav/nav-controller';
@Component({
selector: 'ion-overlay',
template: '<template #contents></template>'
})
export class OverlayNav extends NavController {
constructor(
overlayCtrl: OverlayController,
app: IonicApp,
config: Config,
keyboard: Keyboard,
elementRef: ElementRef,
compiler: Compiler,
loader: DynamicComponentLoader,
viewManager: AppViewManager,
zone: NgZone,
renderer: Renderer
) {
super(null, app, config, keyboard, elementRef, compiler, loader, viewManager, zone, renderer);
if (overlayCtrl.anchor) {
throw ('An app should only have one <ion-overlay></ion-overlay>');
}
overlayCtrl.nav = this;
}
}