From 9d40c76aa0805d6e0d9ba6f3cb86fc142243aa57 Mon Sep 17 00:00:00 2001 From: Adam Bradley Date: Tue, 9 Jun 2015 21:22:20 -0500 Subject: [PATCH] touch up ion-view --- ionic/components/view/view.js | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/ionic/components/view/view.js b/ionic/components/view/view.js index be604024e2..8b28f80414 100644 --- a/ionic/components/view/view.js +++ b/ionic/components/view/view.js @@ -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: `` -}) -export class ViewContainer { - constructor(elementRef: ElementRef) { +export class IonView { + constructor(@Optional() item: ViewItem, elementRef: ElementRef) { + console.log('View constructor', item) this.domElement = elementRef.domElement; } }