Skip to content

Commit

Permalink
style(input): update import syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
adamdbradley committed Jun 30, 2016
1 parent 1f4b3e2 commit 1c882b3
Showing 1 changed file with 17 additions and 18 deletions.
35 changes: 17 additions & 18 deletions src/components/input/input-base.ts
Original file line number Diff line number Diff line change
@@ -1,17 +1,16 @@
import {Directive, Input, Output, EventEmitter, HostListener, ViewChild, ElementRef} from '@angular/core';
import {NgControl} from '@angular/common';

import {Config} from '../../config/config';
import {Content} from '../content/content';
import {Form} from '../../util/form';
import {Item} from '../item/item';
import {App} from '../app/app';
import {isTrueProperty} from '../../util/util';
import {Label} from '../label/label';
import {pointerCoord, hasPointerMoved, closest, copyInputAttributes, Coordinates} from '../../util/dom';
import {NavController} from '../nav/nav-controller';
import {NativeInput, NextInput} from './native-input';
import {Platform} from '../../platform/platform';
import { ElementRef, EventEmitter, Input, Output, ViewChild } from '@angular/core';
import { NgControl } from '@angular/common';

import { App } from '../app/app';
import { closest, copyInputAttributes, Coordinates, hasPointerMoved, pointerCoord } from '../../util/dom';
import { Config } from '../../config/config';
import { Content } from '../content/content';
import { Form } from '../../util/form';
import { isTrueProperty } from '../../util/util';
import { Item } from '../item/item';
import { NativeInput, NextInput } from './native-input';
import { NavController } from '../nav/nav-controller';
import { Platform } from '../../platform/platform';


export class InputBase {
Expand All @@ -23,7 +22,7 @@ export class InputBase {
protected _type: string = 'text';
protected _useAssist: boolean;
protected _usePadding: boolean;
protected _value = '';
protected _value: any = '';
protected _isTouch: boolean;
protected _autoFocusAssist: string;
protected _autoComplete: string;
Expand All @@ -34,8 +33,8 @@ export class InputBase {
@Input() clearInput: any;
@Input() placeholder: string = '';
@ViewChild(NativeInput) protected _native: NativeInput;
@Output() blur: EventEmitter<Event> = new EventEmitter;
@Output() focus: EventEmitter<Event> = new EventEmitter;
@Output() blur: EventEmitter<Event> = new EventEmitter<Event>();
@Output() focus: EventEmitter<Event> = new EventEmitter<Event>();

constructor(
config: Config,
Expand Down Expand Up @@ -140,7 +139,7 @@ export class InputBase {
return this._value;
}

set value(val) {
set value(val: any) {
this._value = val;
this.checkHasValue(val);
}
Expand Down

0 comments on commit 1c882b3

Please sign in to comment.