Skip to content

Instantly share code, notes, and snippets.

@tomastrajan
Last active December 14, 2017 04:43
RxJS in the Wild - concatMap()
getItems(ids: number[]): Observable<Item> {
return from(ids).pipe(
concatMap(id => <Observable<Item>> this.httpClient.get(`item/${id}`))
);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment