Files
2015-07-08 14:05:37 -05:00

30 lines
534 B
TypeScript

import {Directive, ElementRef} from 'angular2/angular2';
@Directive({
selector: 'ion-item-group',
host: {
'class': 'item-group'
}
})
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;
}
}