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

15
ionic/components/ion.js Normal file
View File

@ -0,0 +1,15 @@
/**
* Base class for all Ionic components. Exposes some common functionality
* that all Ionic components need, such as accessing underlying native elements and
* sending/receiving app-level events.
*/
export class Ion {
constructor(elementRef: ElementRef) {
console.log('ION INIT', elementRef);
this.elementRef = elementRef;
}
getNativeElement() {
return this.elementRef.nativeElement;
}
}