diff --git a/demos/weather/index.ts b/demos/weather/index.ts
index 2579213ea5..781d6e728c 100755
--- a/demos/weather/index.ts
+++ b/demos/weather/index.ts
@@ -1,4 +1,4 @@
-import {Component, Directive, View, NgIf, NgFor, NgClass, ElementRef} from 'angular2/angular2';
+import {Component, Directive, NgIf, NgFor, NgClass, ElementRef} from 'angular2/angular2';
import {FormBuilder, Control, ControlGroup, Validators, FORM_DIRECTIVES} from 'angular2/angular2';
import {App, IonicView, Animation, Content, Scroll, Modal, NavController, NavParams} from 'ionic/ionic';
@@ -58,9 +58,7 @@ let WEATHER_ICONS = {
selector: 'weather-icon',
inputs: [
'icon'
- ]
-})
-@View({
+ ],
template: '',
directives: [NgClass]
})
@@ -82,9 +80,7 @@ export class WeatherIcon {
selector: 'current-time',
inputs: [
'localtz'
- ]
-})
-@View({
+ ],
template: '{{currentTime}}',
})
export class CurrentTime {
@@ -102,9 +98,7 @@ export class CurrentTime {
selector: 'current-weather',
inputs: [
'current'
- ]
-})
-@View({
+ ],
templateUrl: 'current-weather.html',
directives: [NgIf]
})
@@ -177,9 +171,7 @@ export class CurrentWeather {
selector: 'background-cycler',
inputs: [
'image'
- ]
-})
-@View({
+ ],
template: '
'
})
export class BackgroundCycler {
diff --git a/ionic/components/action-sheet/action-sheet.ts b/ionic/components/action-sheet/action-sheet.ts
index c9f47bd696..c67ebd8441 100644
--- a/ionic/components/action-sheet/action-sheet.ts
+++ b/ionic/components/action-sheet/action-sheet.ts
@@ -6,7 +6,7 @@
* The ActionSheet is a modal menu with options to select based on an action.
*/
-import {Component, View, Injectable, NgFor, NgIf} from 'angular2/angular2';
+import {Component, Injectable, NgFor, NgIf} from 'angular2/angular2';
import {OverlayController} from '../overlay/overlay-controller';
import {IonicConfig} from '../../config/config';
@@ -54,9 +54,7 @@ import * as util from 'ionic/util';
* ```
*/
@Component({
- selector: 'ion-action-sheet'
-})
-@View({
+ selector: 'ion-action-sheet',
template:
'' +
'' +
diff --git a/ionic/components/checkbox/checkbox.ts b/ionic/components/checkbox/checkbox.ts
index c39e87d05e..e32ff3fd4e 100644
--- a/ionic/components/checkbox/checkbox.ts
+++ b/ionic/components/checkbox/checkbox.ts
@@ -1,4 +1,4 @@
-import {Component, View, Directive, Optional, NgControl, ElementRef, Renderer} from 'angular2/angular2';
+import {Component, Directive, Optional, NgControl, ElementRef, Renderer} from 'angular2/angular2';
import {Ion} from '../ion';
import {IonicForm} from '../form/form';
@@ -31,16 +31,14 @@ import {IonicForm} from '../form/form';
'[attr.aria-disabled]': 'disabled',
'[attr.aria-labelledby]': 'labelId',
'(click)': 'click($event)'
- }
-})
-@View({
+ },
template:
- '' +
- '' +
- '' +
- '' +
- '' +
- ''
+ '' +
+ '' +
+ '' +
+ '' +
+ '' +
+ ''
})
export class Checkbox {
diff --git a/ionic/components/content/content.ts b/ionic/components/content/content.ts
index 198cb6ba0d..c670aafa5b 100644
--- a/ionic/components/content/content.ts
+++ b/ionic/components/content/content.ts
@@ -1,4 +1,4 @@
-import {Component, View, ElementRef, Optional, Host} from 'angular2/angular2';
+import {Component, ElementRef, Optional} from 'angular2/angular2';
import {Ion} from '../ion';
import {IonicConfig} from '../../config/config';
@@ -25,11 +25,7 @@ import {ScrollTo} from '../../animations/scroll-to';
*/
@Component({
selector: 'ion-content',
- inputs: [
- 'parallax'
- ]
-})
-@View({
+ inputs: ['parallax'],
template: ''
})
export class Content extends Ion {
diff --git a/ionic/components/item/item-sliding.ts b/ionic/components/item/item-sliding.ts
index 1452bbad6f..561d89298b 100644
--- a/ionic/components/item/item-sliding.ts
+++ b/ionic/components/item/item-sliding.ts
@@ -1,4 +1,4 @@
-import {Component, Directive, View, ElementRef, NgIf, Host, Optional, Renderer} from 'angular2/angular2';
+import {Component, Directive, ElementRef, NgIf, Host, Optional, Renderer} from 'angular2/angular2';
import {Gesture} from 'ionic/gestures/gesture';
import {DragGesture} from 'ionic/gestures/drag-gesture';
@@ -32,17 +32,15 @@ import {CSS, raf} from 'ionic/util/dom';
selector: 'ion-item-sliding,[ion-item-sliding]',
inputs: [
'sliding'
- ]
-})
-@View({
+ ],
template:
- '' +
- '' +
- '' +
- ''+
- '' +
- '' +
- '',
+ '' +
+ '' +
+ '' +
+ ''+
+ '' +
+ '' +
+ '',
directives: [NgIf]
})
export class ItemSliding {
diff --git a/ionic/components/item/item.ts b/ionic/components/item/item.ts
index 785cca26cc..a4c4d0c27a 100644
--- a/ionic/components/item/item.ts
+++ b/ionic/components/item/item.ts
@@ -1,4 +1,4 @@
-import {Component, View, ElementRef, Renderer} from 'angular2/angular2';
+import {Component, ElementRef, Renderer} from 'angular2/angular2';
/**
@@ -18,9 +18,7 @@ import {Component, View, ElementRef, Renderer} from 'angular2/angular2';
* ```
*/
@Component({
- selector: 'ion-item,[ion-item]'
-})
-@View({
+ selector: 'ion-item,[ion-item]',
template:
'' +
'' +
diff --git a/ionic/components/menu/menu.ts b/ionic/components/menu/menu.ts
index f24dae1cd1..c3bd5b3dd9 100644
--- a/ionic/components/menu/menu.ts
+++ b/ionic/components/menu/menu.ts
@@ -1,4 +1,4 @@
-import {forwardRef, Directive, Host, View, EventEmitter, ElementRef} from 'angular2/angular2';
+import {forwardRef, Directive, Host, EventEmitter, ElementRef} from 'angular2/angular2';
import {Ion} from '../ion';
import {IonicApp} from '../app/app';
@@ -54,12 +54,10 @@ import * as gestures from './menu-gestures';
'side': 'left',
'type': 'reveal'
},
+ outputs: ['opening'],
host: {
'role': 'navigation'
},
- outputs: ['opening']
-})
-@View({
template: '',
directives: [forwardRef(() => MenuBackdrop)]
})
diff --git a/ionic/components/nav-bar/nav-bar.ts b/ionic/components/nav-bar/nav-bar.ts
index d6884024c4..19a93a178d 100644
--- a/ionic/components/nav-bar/nav-bar.ts
+++ b/ionic/components/nav-bar/nav-bar.ts
@@ -1,4 +1,4 @@
-import {Component, Directive, View, Optional, ElementRef, Renderer, TemplateRef, forwardRef, Inject} from 'angular2/angular2';
+import {Component, Directive, Optional, ElementRef, Renderer, TemplateRef, forwardRef, Inject} from 'angular2/angular2';
import {Ion} from '../ion';
import {Icon} from '../icon/icon';
@@ -50,9 +50,7 @@ class BackButtonText extends Ion {
@Component({
- selector: 'ion-navbar'
-})
-@View({
+ selector: 'ion-navbar',
template:
'