diff --git a/ionic/components/checkbox/checkbox.ts b/ionic/components/checkbox/checkbox.ts index 2de01fbd2e..c68036899f 100644 --- a/ionic/components/checkbox/checkbox.ts +++ b/ionic/components/checkbox/checkbox.ts @@ -1,4 +1,4 @@ -import {Component, Directive, Optional, NgControl, ElementRef, Renderer} from 'angular2/angular2'; +import {Component, Directive, Optional, NgControl, ElementRef} from 'angular2/angular2'; import {Ion} from '../ion'; import {Form} from '../../util/form'; @@ -30,7 +30,8 @@ import {Form} from '../../util/form'; '[attr.aria-checked]': 'checked', '[attr.aria-disabled]': 'disabled', '[attr.aria-labelledby]': 'labelId', - '(click)': 'click($event)' + '(click)': 'click($event)', + 'class': 'item' }, template: '
' + @@ -47,10 +48,8 @@ export class Checkbox { constructor( form: Form, @Optional() ngControl: NgControl, - elementRef: ElementRef, - renderer: Renderer + elementRef: ElementRef ) { - renderer.setElementClass(elementRef, 'item', true); this.form = form; form.register(this); diff --git a/ionic/components/item/item.ts b/ionic/components/item/item.ts index 8d301ccbcf..4c63759ba2 100644 --- a/ionic/components/item/item.ts +++ b/ionic/components/item/item.ts @@ -5,16 +5,16 @@ import {Component} from 'angular2/angular2'; * Creates a list-item that can easily be swiped, * deleted, reordered, edited, and more. * - * There are three common ways to use an item: + * There are three common ways to use an item: * - Use `` for something that is only non-clickable text. * - Use `