mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
chore: linting and TS errors (#7235)
Fixes a few linting errors in master and a TS error.
This commit is contained in:
committed by
Jeremy Elbourn
parent
d914cc4ea1
commit
dbae36035d
@@ -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';
|
||||
|
||||
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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) {
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user