feat(Ion): Base component class

This commit is contained in:
Max Lynch
2015-06-30 10:46:36 -05:00
parent 1927cb8bb1
commit 39bd7efdfd
8 changed files with 38 additions and 18 deletions

View File

@@ -4,12 +4,14 @@ import {Optional} from 'angular2/src/di/annotations_impl'
import {ViewItem} from './view-item';
import {Ion} from '../ion';
@Directive({
selector: 'ion-view',
})
export class IonView {
export class IonView extends Ion {
constructor(@Optional() item: ViewItem, elementRef: ElementRef) {
super(elementRef);
this.ele = elementRef.nativeElement;
}
}