update to latest ng

This commit is contained in:
Andrew
2015-03-24 19:22:09 -06:00
parent 1549876988
commit ce33a09be3
11 changed files with 156 additions and 490 deletions

View File

@ -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,