mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
feat(Ion): Base component class
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user