Files
2015-07-05 18:50:46 -05:00

30 lines
593 B
TypeScript

import {Component, Directive, View, ElementRef} from 'angular2/angular2';
@Component({
selector: 'ion-item-group',
host: {
'class': 'item-group'
}
})
@View({
template: `<content></content>`
})
export class ItemGroup {
constructor(elementRef: ElementRef) {
this.ele = elementRef.nativeElement;
}
}
@Directive({
selector: 'ion-item-group-title',
host: {
'class': 'item-group-title',
'[class.sticky]': 'isSticky'
}
})
export class ItemGroupTitle {
constructor(elementRef: ElementRef) {
this.isSticky = true;
this.ele = elementRef.nativeElement;
}
}