style(input): update import syntax

This commit is contained in:
Adam Bradley
2016-06-29 22:42:22 -05:00
parent 1f4b3e2cf0
commit 1c882b31a5

View File

@ -1,17 +1,16 @@
import {Directive, Input, Output, EventEmitter, HostListener, ViewChild, ElementRef} from '@angular/core'; import { ElementRef, EventEmitter, Input, Output, ViewChild } from '@angular/core';
import {NgControl} from '@angular/common'; import { NgControl } from '@angular/common';
import {Config} from '../../config/config'; import { App } from '../app/app';
import {Content} from '../content/content'; import { closest, copyInputAttributes, Coordinates, hasPointerMoved, pointerCoord } from '../../util/dom';
import {Form} from '../../util/form'; import { Config } from '../../config/config';
import {Item} from '../item/item'; import { Content } from '../content/content';
import {App} from '../app/app'; import { Form } from '../../util/form';
import {isTrueProperty} from '../../util/util'; import { isTrueProperty } from '../../util/util';
import {Label} from '../label/label'; import { Item } from '../item/item';
import {pointerCoord, hasPointerMoved, closest, copyInputAttributes, Coordinates} from '../../util/dom'; import { NativeInput, NextInput } from './native-input';
import {NavController} from '../nav/nav-controller'; import { NavController } from '../nav/nav-controller';
import {NativeInput, NextInput} from './native-input'; import { Platform } from '../../platform/platform';
import {Platform} from '../../platform/platform';
export class InputBase { export class InputBase {
@ -23,7 +22,7 @@ export class InputBase {
protected _type: string = 'text'; protected _type: string = 'text';
protected _useAssist: boolean; protected _useAssist: boolean;
protected _usePadding: boolean; protected _usePadding: boolean;
protected _value = ''; protected _value: any = '';
protected _isTouch: boolean; protected _isTouch: boolean;
protected _autoFocusAssist: string; protected _autoFocusAssist: string;
protected _autoComplete: string; protected _autoComplete: string;
@ -34,8 +33,8 @@ export class InputBase {
@Input() clearInput: any; @Input() clearInput: any;
@Input() placeholder: string = ''; @Input() placeholder: string = '';
@ViewChild(NativeInput) protected _native: NativeInput; @ViewChild(NativeInput) protected _native: NativeInput;
@Output() blur: EventEmitter<Event> = new EventEmitter; @Output() blur: EventEmitter<Event> = new EventEmitter<Event>();
@Output() focus: EventEmitter<Event> = new EventEmitter; @Output() focus: EventEmitter<Event> = new EventEmitter<Event>();
constructor( constructor(
config: Config, config: Config,
@ -140,7 +139,7 @@ export class InputBase {
return this._value; return this._value;
} }
set value(val) { set value(val: any) {
this._value = val; this._value = val;
this.checkHasValue(val); this.checkHasValue(val);
} }