Skip to content

Instantly share code, notes, and snippets.

@bobbyg603
Last active May 9, 2022 17:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bobbyg603/78b1d90812a3f6c0eccce468599fcc05 to your computer and use it in GitHub Desktop.
Save bobbyg603/78b1d90812a3f6c0eccce468599fcc05 to your computer and use it in GitHub Desktop.
File Uploads with Angular and Express
<div *ngFor="let upload of uploads" class="row mx-0 mt-2">
<div class="col-6 px-0">
<span [class.text-danger]="upload.failed">{{upload.name}}</span>
<span *ngIf="upload.done && !upload.failed" class="text-success pl-2">
</span>
<span *ngIf="upload.done && upload.failed" class="text-danger pl-2">
𐄂
</span>
</div>
<div class="col-6 pt-2 px-0">
<ngb-progressbar [type]="upload.failed ? 'danger' : 'success'" textType="white" [value]="upload.progress"
[showValue]="true"></ngb-progressbar>
</div>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment