Allow uploading images

This commit is contained in:
2024-06-24 10:22:16 +02:00
parent a06cbe1759
commit 877d69f4c9
3 changed files with 40 additions and 11 deletions

View File

@@ -26,7 +26,7 @@
<ng-container matColumnDef="image">
<th mat-header-cell *matHeaderCellDef> image </th>
<td mat-cell *matCellDef="let element">
<img src="https://placehold.co/200x200">
<img [src]="element.image || 'https://placehold.co/200x200'" [alt]="element.image ? element.name : ''" width="200" height="200">
</td>
</ng-container>