mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-18 19:21:34 +08:00
17 lines
464 B
JavaScript
17 lines
464 B
JavaScript
import {Directive} from 'angular2/src/core/annotations_impl/annotations';
|
|
import {ElementRef} from 'angular2/src/core/compiler/element_ref';
|
|
import {Optional} from 'angular2/src/di/annotations_impl'
|
|
|
|
import {ViewItem} from './view-item';
|
|
|
|
|
|
@Directive({
|
|
selector: 'ion-view',
|
|
})
|
|
export class IonView {
|
|
constructor(@Optional() item: ViewItem, elementRef: ElementRef) {
|
|
console.log('View constructor', item)
|
|
this.domElement = elementRef.domElement;
|
|
}
|
|
}
|