Skip to content

Commit dbae360

Browse files
crisbetojelbourn
authored andcommitted
chore: linting and TS errors (#7235)
Fixes a few linting errors in master and a TS error.
1 parent d914cc4 commit dbae360

File tree

4 files changed

+11
-6
lines changed

4 files changed

+11
-6
lines changed

src/lib/chips/chip-input.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
import {coerceBooleanProperty} from '@angular/cdk/coercion';
1010
import {ENTER} from '@angular/cdk/keycodes';
11-
import {Directive, ElementRef, EventEmitter, Input, Output,} from '@angular/core';
11+
import {Directive, ElementRef, EventEmitter, Input, Output} from '@angular/core';
1212
import {MdChipList} from './chip-list';
1313

1414

src/lib/chips/chip-list.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import {FocusKeyManager} from '@angular/cdk/a11y';
1010
import {Directionality} from '@angular/cdk/bidi';
1111
import {coerceBooleanProperty} from '@angular/cdk/coercion';
1212
import {SelectionModel} from '@angular/cdk/collections';
13-
import {BACKSPACE, DELETE, LEFT_ARROW, RIGHT_ARROW, UP_ARROW,} from '@angular/cdk/keycodes';
13+
import {BACKSPACE, DELETE, LEFT_ARROW, RIGHT_ARROW, UP_ARROW} from '@angular/cdk/keycodes';
1414
import {startWith} from '@angular/cdk/rxjs';
1515
import {
1616
AfterContentInit,

src/lib/chips/chip.ts

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -110,14 +110,17 @@ export class MdChip extends _MdChipMixinBase implements FocusableOption, OnDestr
110110
? this._value
111111
: this._elementRef.nativeElement.textContent;
112112
}
113-
set value(newValue: any) { this._value = newValue;}
113+
set value(newValue: any) {
114+
this._value = newValue;
115+
}
114116

115117
/**
116118
* Whether or not the chips are selectable. When a chip is not selectable,
117119
* changes to it's selected state are always ignored.
118120
*/
119121
@Input() get selectable(): boolean {
120-
return this._selectable;}
122+
return this._selectable;
123+
}
121124

122125

123126
set selectable(value: boolean) {
@@ -128,7 +131,8 @@ export class MdChip extends _MdChipMixinBase implements FocusableOption, OnDestr
128131
* Determines whether or not the chip displays the remove styling and emits (remove) events.
129132
*/
130133
@Input() get removable(): boolean {
131-
return this._removable;}
134+
return this._removable;
135+
}
132136

133137

134138
set removable(value: boolean) {

src/material-examples/chips-input/chips-input-example.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import {Component} from '@angular/core';
2-
import {MdChipInputEvent, ENTER} from '@angular/material';
2+
import {MdChipInputEvent} from '@angular/material';
3+
import {ENTER} from '@angular/cdk/keycodes';
34

45
const COMMA = 188;
56

0 commit comments

Comments
 (0)