Skip to content

Commit edd7924

Browse files
amcdnlkara
authored andcommitted
chore(demo): update chip input demo (#7526)
1 parent 9bffe07 commit edd7924

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed
Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
<mat-form-field class="demo-chip-list">
2-
<mat-chip-list matPrefix #chipList>
2+
<mat-chip-list #chipList>
33
<mat-chip *ngFor="let fruit of fruits" [selectable]="selectable"
44
[removable]="removable" (remove)="remove(fruit)">
55
{{fruit.name}}
66
<mat-icon matChipRemove *ngIf="removable">cancel</mat-icon>
77
</mat-chip>
8+
<input placeholder="New fruit..."
9+
[matChipInputFor]="chipList"
10+
[matChipInputSeparatorKeyCodes]="separatorKeysCodes"
11+
[matChipInputAddOnBlur]="addOnBlur"
12+
(matChipInputTokenEnd)="add($event)" />
813
</mat-chip-list>
9-
<input matInput placeholder="New fruit..."
10-
[matChipInputFor]="chipList"
11-
[matChipInputSeparatorKeyCodes]="separatorKeysCodes"
12-
[matChipInputAddOnBlur]="addOnBlur"
13-
(matChipInputTokenEnd)="add($event)" />
1414
</mat-form-field>

0 commit comments

Comments
 (0)