mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-19 03:32:21 +08:00
16 lines
415 B
JavaScript
16 lines
415 B
JavaScript
/**
|
|
* 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;
|
|
}
|
|
}
|