mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
touch up ion-view
This commit is contained in:
@@ -1,15 +1,16 @@
|
||||
import {ElementRef} from 'angular2/angular2'
|
||||
import {Component} from 'angular2/src/core/annotations_impl/annotations';
|
||||
import {View} from 'angular2/src/core/annotations_impl/view';
|
||||
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'
|
||||
|
||||
@Component({
|
||||
import {ViewItem} from './view-item';
|
||||
|
||||
|
||||
@Directive({
|
||||
selector: 'ion-view',
|
||||
})
|
||||
@View({
|
||||
template: `<content></content>`
|
||||
})
|
||||
export class ViewContainer {
|
||||
constructor(elementRef: ElementRef) {
|
||||
export class IonView {
|
||||
constructor(@Optional() item: ViewItem, elementRef: ElementRef) {
|
||||
console.log('View constructor', item)
|
||||
this.domElement = elementRef.domElement;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user