chore: linting and TS errors (#7235)

Fixes a few linting errors in master and a TS error.
This commit is contained in:
Kristiyan Kostadinov
2017-09-21 22:26:57 +02:00
committed by Jeremy Elbourn
parent d914cc4ea1
commit dbae36035d
4 changed files with 11 additions and 6 deletions
+1 -1
View File
@@ -8,7 +8,7 @@
import {coerceBooleanProperty} from '@angular/cdk/coercion'; import {coerceBooleanProperty} from '@angular/cdk/coercion';
import {ENTER} from '@angular/cdk/keycodes'; import {ENTER} from '@angular/cdk/keycodes';
import {Directive, ElementRef, EventEmitter, Input, Output,} from '@angular/core'; import {Directive, ElementRef, EventEmitter, Input, Output} from '@angular/core';
import {MdChipList} from './chip-list'; import {MdChipList} from './chip-list';
+1 -1
View File
@@ -10,7 +10,7 @@ import {FocusKeyManager} from '@angular/cdk/a11y';
import {Directionality} from '@angular/cdk/bidi'; import {Directionality} from '@angular/cdk/bidi';
import {coerceBooleanProperty} from '@angular/cdk/coercion'; import {coerceBooleanProperty} from '@angular/cdk/coercion';
import {SelectionModel} from '@angular/cdk/collections'; import {SelectionModel} from '@angular/cdk/collections';
import {BACKSPACE, DELETE, LEFT_ARROW, RIGHT_ARROW, UP_ARROW,} from '@angular/cdk/keycodes'; import {BACKSPACE, DELETE, LEFT_ARROW, RIGHT_ARROW, UP_ARROW} from '@angular/cdk/keycodes';
import {startWith} from '@angular/cdk/rxjs'; import {startWith} from '@angular/cdk/rxjs';
import { import {
AfterContentInit, AfterContentInit,
+7 -3
View File
@@ -110,14 +110,17 @@ export class MdChip extends _MdChipMixinBase implements FocusableOption, OnDestr
? this._value ? this._value
: this._elementRef.nativeElement.textContent; : this._elementRef.nativeElement.textContent;
} }
set value(newValue: any) { this._value = newValue;} set value(newValue: any) {
this._value = newValue;
}
/** /**
* Whether or not the chips are selectable. When a chip is not selectable, * Whether or not the chips are selectable. When a chip is not selectable,
* changes to it's selected state are always ignored. * changes to it's selected state are always ignored.
*/ */
@Input() get selectable(): boolean { @Input() get selectable(): boolean {
return this._selectable;} return this._selectable;
}
set selectable(value: boolean) { set selectable(value: boolean) {
@@ -128,7 +131,8 @@ export class MdChip extends _MdChipMixinBase implements FocusableOption, OnDestr
* Determines whether or not the chip displays the remove styling and emits (remove) events. * Determines whether or not the chip displays the remove styling and emits (remove) events.
*/ */
@Input() get removable(): boolean { @Input() get removable(): boolean {
return this._removable;} return this._removable;
}
set removable(value: boolean) { set removable(value: boolean) {
@@ -1,5 +1,6 @@
import {Component} from '@angular/core'; import {Component} from '@angular/core';
import {MdChipInputEvent, ENTER} from '@angular/material'; import {MdChipInputEvent} from '@angular/material';
import {ENTER} from '@angular/cdk/keycodes';
const COMMA = 188; const COMMA = 188;