Created
August 2, 2022 12:57
-
-
Save bobbyg603/641070daaf7548fb91843f763f4a6d27 to your computer and use it in GitHub Desktop.
File Uploads with Angular and RxJS
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
return file$ | |
.pipe( | |
switchMap(file => this.uploadFile(file) | |
+ .pipe( | |
+ filter(isHttpProgressEvent) | |
+ ) | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment