App annotation/mode attribute

This commit is contained in:
Adam Bradley
2015-07-08 14:05:37 -05:00
parent 9d2570d2e5
commit 40fc77b0b6
112 changed files with 625 additions and 1466 deletions

View File

@@ -9,8 +9,9 @@ import * as util from 'ionic/util';
export class Overlay {
constructor(app: IonicApp) {
constructor(app: IonicApp, ionicConfig: IonicConfig) {
this.app = app;
this.ionicConfig = ionicConfig;
}
create(overlayType, ComponentType: Type, opts={}, context=null) {
@@ -21,7 +22,8 @@ export class Overlay {
annotation.selector = 'ion-' + overlayType;
annotation.host = {
'[style.z-index]': 'zIndex',
'class': overlayType + ' ion-app'
'class': overlayType + ' ion-app',
'mode': this.ionicConfig.setting('mode')
};
let overlayComponent = DirectiveBinding.createFromType(ComponentType, annotation);