mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-20 04:14:21 +08:00
update to latest ng
This commit is contained in:
@ -1,10 +1,10 @@
|
||||
import {Component, Template, Inject, Parent, NgElement} from 'angular2/angular2';
|
||||
import {Ion} from '../ion';
|
||||
import {IonConfig} from '../../config';
|
||||
import {Config} from '../../core/config/config';
|
||||
import {SlideEdgeGesture} from '../../core/gestures/slide-edge-gesture';
|
||||
import * as util from '../../util';
|
||||
|
||||
export var asideConfig = new IonConfig('aside');
|
||||
export var asideConfig = new Config('aside');
|
||||
|
||||
// TODO defaults or bindings?
|
||||
asideConfig.set({
|
||||
@ -12,6 +12,13 @@ asideConfig.set({
|
||||
dragThreshold: 50
|
||||
})
|
||||
|
||||
|
||||
class AndroidAside {}
|
||||
class IosAside {}
|
||||
|
||||
asideConfig.platform('android').component(AndroidAside);
|
||||
asideConfig.platform('ios').component(IosAside);
|
||||
|
||||
// AsideParent is just a temporary directive
|
||||
@Component({
|
||||
selector: 'ion-aside-parent'
|
||||
@ -49,7 +56,9 @@ export class Aside {
|
||||
|
||||
// TODO: remove this. setTimeout has to be done so the bindings can be applied
|
||||
setTimeout(() => {
|
||||
// asideConfig.invoke(this);
|
||||
let Comp = asideConfig.invoke(this);
|
||||
console.log('using', Comp);
|
||||
|
||||
let GestureConstructor = {
|
||||
left: LeftAsideSlideGesture,
|
||||
top: TopAsideSlideGesture,
|
||||
|
Reference in New Issue
Block a user