File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
src/material-examples/chips-input Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change 1
1
< mat-form-field class ="demo-chip-list ">
2
- < mat-chip-list matPrefix #chipList >
2
+ < mat-chip-list #chipList >
3
3
< mat-chip *ngFor ="let fruit of fruits " [selectable] ="selectable "
4
4
[removable] ="removable " (remove) ="remove(fruit) ">
5
5
{{fruit.name}}
6
6
< mat-icon matChipRemove *ngIf ="removable "> cancel</ mat-icon >
7
7
</ mat-chip >
8
+ < input placeholder ="New fruit... "
9
+ [matChipInputFor] ="chipList "
10
+ [matChipInputSeparatorKeyCodes] ="separatorKeysCodes "
11
+ [matChipInputAddOnBlur] ="addOnBlur "
12
+ (matChipInputTokenEnd) ="add($event) " />
8
13
</ mat-chip-list >
9
- < input matInput placeholder ="New fruit... "
10
- [matChipInputFor] ="chipList "
11
- [matChipInputSeparatorKeyCodes] ="separatorKeysCodes "
12
- [matChipInputAddOnBlur] ="addOnBlur "
13
- (matChipInputTokenEnd) ="add($event) " />
14
14
</ mat-form-field >
You can’t perform that action at this time.
0 commit comments