chore(): remove use of @View

This commit is contained in:
Adam Bradley
2015-10-09 09:15:02 -05:00
parent 9255d473f1
commit 0cac4d9a2e
27 changed files with 134 additions and 337 deletions

View File

@@ -1,15 +1,4 @@
import {
Component,
View,
Directive,
ElementRef,
Renderer,
Host,
Optional,
NgControl,
Inject,
forwardRef
} from 'angular2/angular2';
import {Component, Directive, ElementRef, Renderer, Host, Optional, NgControl, Inject, forwardRef} from 'angular2/angular2';
import {IonicForm} from '../form/form';
import {IonicConfig} from '../../config/config';
@@ -95,17 +84,15 @@ class MediaSwitch {
'(mousedown)': 'pointerDown($event)',
'(touchend)': 'pointerUp($event)',
'(mouseup)': 'pointerUp($event)'
}
})
@View({
},
template:
'<ng-content select="[item-left]"></ng-content>' +
'<ion-item-content id="{{labelId}}">' +
'<ng-content></ng-content>' +
'</ion-item-content>' +
'<media-switch disable-activated>' +
'<switch-icon></switch-icon>' +
'</media-switch>',
'<ng-content select="[item-left]"></ng-content>' +
'<ion-item-content id="{{labelId}}">' +
'<ng-content></ng-content>' +
'</ion-item-content>' +
'<media-switch disable-activated>' +
'<switch-icon></switch-icon>' +
'</media-switch>',
directives: [MediaSwitch]
})
export class Switch {