import {Component, ElementRef, Renderer, Input, HostListener, Optional} from 'angular2/core'; import {NgControl} from 'angular2/common'; import {Form} from '../../util/form'; import {Config} from '../../config/config'; import {pointerCoord} from '../../util/dom'; /** * @name Toggle * @description * A toggle technically is the same thing as an HTML checkbox input, except it looks different and is easier to use on a touch device. Ionic prefers to wrap the checkbox input with the `