navbar aside menu button

This commit is contained in:
Adam Bradley
2015-09-01 15:42:45 -05:00
parent d0c9f1404e
commit 4952cf58fb
10 changed files with 88 additions and 100 deletions

View File

@@ -1,41 +0,0 @@
import {Query, ViewQuery, QueryList, bootstrap, ElementRef, Component, Directive, View, Injectable, Renderer} from 'angular2/angular2';
@Component({
selector: 'icon'
})
@View({
template: '♠'
})
class Icon {}
@Directive({
selector: 'button'
})
class Button {
constructor(@Query(Icon) public icon: QueryList<Icon>) {
icon.onChange( ()=> {
console.log('button icon', icon);
});
}
onInit() {
console.log('Button icon', this.icon);
}
}
@Component({
selector: 'ion-app'
})
@View({
template: `
<button><icon></icon> Button</button>
`,
directives: [Button, Icon]
})
export class HelloCmp {
}
bootstrap(HelloCmp);