master
Max 4 years ago
parent dab1861101
commit bb9dc0f1ed

@ -67,11 +67,11 @@
<mat-chip-list #chipList> <mat-chip-list #chipList>
<mat-chip <mat-chip
*ngFor="let element of value" *ngFor="let element of value"
[removable]="true" [removable]="editable"
(removed)="removeElementFromList(element)" (removed)="removeElementFromList(element)"
> >
{{ element }} {{ element }}
<mat-icon matChipRemove>cancel</mat-icon> <mat-icon matChipRemove *ngIf="editable">cancel</mat-icon>
</mat-chip> </mat-chip>
<input <input
placeholder="hinzufügen..." placeholder="hinzufügen..."
@ -79,6 +79,7 @@
[matChipInputSeparatorKeyCodes]="separatorKeysCodes" [matChipInputSeparatorKeyCodes]="separatorKeysCodes"
[matChipInputAddOnBlur]="true" [matChipInputAddOnBlur]="true"
(matChipInputTokenEnd)="addElementToList($event)" (matChipInputTokenEnd)="addElementToList($event)"
*ngIf="editable"
/> />
</mat-chip-list> </mat-chip-list>
</mat-form-field> </mat-form-field>

Loading…
Cancel
Save