import {Parent, Ancestor, Optional, ElementRef, Attribute} from 'angular2/angular2'; import {IonInput} from './form'; import {IonicApp} from '../app/app'; import {Content} from '../content/content'; export class TapInput extends IonInput { constructor( @Optional() @Parent() container: Input, @Optional() @Ancestor() scrollView: Content, @Attribute('type') type: string, elementRef: ElementRef, app: IonicApp ) { super(elementRef, app, scrollView); if (container) { container.registerInput(this); this.container = container; } this.type = type; this.elementRef = elementRef; this.tabIndex = this.tabIndex || ''; } }