mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-20 12:29:55 +08:00
feat(Ion): Base component class
This commit is contained in:
15
ionic/components/ion.js
Normal file
15
ionic/components/ion.js
Normal 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;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user