Last active
May 12, 2022 01:56
-
-
Save bobbyg603/ff5ceccc841966e25a4f870aa74373f1 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
private getFilesSubject = new BehaviorSubject<any>(null); | |
constructor(private httpClient: HttpClient) { | |
this.files$ = this.getFilesSubject.asObservable() | |
.pipe( | |
switchMap(() => this.httpClient.get<FilesTableEntry[]>('http://localhost:8080/files')) | |
); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment