Last active
May 9, 2022 01:18
-
-
Save bobbyg603/924056848d5e0bb7e9ebedce7adcb63a 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
import { Component, EventEmitter, Output } from '@angular/core'; | |
import { NgxFileDropEntry } from '@bugsplat/ngx-file-drop'; | |
@Component({ | |
selector: 'app-file-drop', | |
templateUrl: './file-drop.component.html', | |
styleUrls: ['./file-drop.component.scss'] | |
}) | |
export class FileDrop { | |
@Output() filesDropped = new EventEmitter<NgxFileDropEntry[]>(); | |
onFilesDropped(files: NgxFileDropEntry[]) { | |
this.filesDropped.next(files); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment