Remove files

This commit is contained in:
2018-11-29 19:19:39 -05:00
parent a66b8135d8
commit a2fb949dce
3 changed files with 31 additions and 10 deletions

View File

@ -4,7 +4,10 @@
<span>ETF Demo</span>
<span class="mx-auto"><!-- Spacer --></span>
<mat-chip-list class="mr-2">
<mat-chip *ngFor="let file of files" color="primary">{{file}}</mat-chip>
<mat-chip *ngFor="let file of fileNames" color="primary" [removable]="true" (removed)="remove($event.chip.value)" [value]="file">
{{file}}
<mat-icon matChipRemove>cancel</mat-icon>
</mat-chip>
</mat-chip-list>
<button mat-button (click)="fileUploader.click()">