mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-19 03:32:21 +08:00
16 lines
349 B
TypeScript
16 lines
349 B
TypeScript
import {Directive, ElementRef, Optional} from 'angular2/angular2';
|
|
|
|
import {ViewItem} from './view-item';
|
|
import {Ion} from '../ion';
|
|
|
|
|
|
@Directive({
|
|
selector: 'ion-view',
|
|
})
|
|
export class IonView extends Ion {
|
|
constructor(@Optional() item: ViewItem, elementRef: ElementRef) {
|
|
super(elementRef);
|
|
this.ele = elementRef.nativeElement;
|
|
}
|
|
}
|