Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR TYPESCRIPT

angular rxjs mergemap

 this.http
      .get<any[]>('https://jsonplaceholder.typicode.com/posts')
      .pipe(
        mergeMap((val) => from(val))
      )
      .subscribe((data) => {
        console.log(data);
      });
 
PREVIOUS NEXT
Tagged: #angular #rxjs #mergemap
ADD COMMENT
Topic
Name
5+8 =