Last active
May 9, 2022 00:34
-
-
Save bobbyg603/267c6a80de50550c5f7609405e290d13 to your computer and use it in GitHub Desktop.
File Uploads with Angular and Express
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<section class="d-flex justify-content-between"> | |
<h1>Files</h1> | |
</section> | |
<hr class="my-2"> | |
<section> | |
<table class="table"> | |
<tbody> | |
<tr *ngFor="let file of files"> | |
<td> | |
<a [href]="file.url">{{file.name}}</a> | |
</td> | |
<td> | |
{{ file.uploaded | date:'long' }} | |
</td> | |
<td> | |
{{ file.size / (1024 * 10 * 10 * 10) | number:'.2-2' }} MB | |
</td> | |
</tr> | |
</tbody> | |
</table> | |
</section> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment