diff --git a/src/lib/chips/chip-input.ts b/src/lib/chips/chip-input.ts index 716d4d710b32..c4c61ae2856f 100644 --- a/src/lib/chips/chip-input.ts +++ b/src/lib/chips/chip-input.ts @@ -8,7 +8,7 @@ import {coerceBooleanProperty} from '@angular/cdk/coercion'; 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'; diff --git a/src/lib/chips/chip-list.ts b/src/lib/chips/chip-list.ts index 487dceacdf3c..5555824873d6 100644 --- a/src/lib/chips/chip-list.ts +++ b/src/lib/chips/chip-list.ts @@ -10,7 +10,7 @@ import {FocusKeyManager} from '@angular/cdk/a11y'; import {Directionality} from '@angular/cdk/bidi'; import {coerceBooleanProperty} from '@angular/cdk/coercion'; 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 { AfterContentInit, diff --git a/src/lib/chips/chip.ts b/src/lib/chips/chip.ts index 003e1b9807a1..5b2690816e30 100644 --- a/src/lib/chips/chip.ts +++ b/src/lib/chips/chip.ts @@ -110,14 +110,17 @@ export class MdChip extends _MdChipMixinBase implements FocusableOption, OnDestr ? this._value : 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, * changes to it's selected state are always ignored. */ @Input() get selectable(): boolean { - return this._selectable;} + return this._selectable; + } 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. */ @Input() get removable(): boolean { - return this._removable;} + return this._removable; + } set removable(value: boolean) { diff --git a/src/material-examples/chips-input/chips-input-example.ts b/src/material-examples/chips-input/chips-input-example.ts index 0e96d0862e05..89adf943c181 100644 --- a/src/material-examples/chips-input/chips-input-example.ts +++ b/src/material-examples/chips-input/chips-input-example.ts @@ -1,5 +1,6 @@ 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;