One challenge I am facing is merging two Observable arrays in Angular without using the subscribe method. How can this be achieved?
My approach so far has been as follows:
this.similarIdeasObservable$.pipe(concat(this.ideaService.getSimilarIdeas(this.idea).pipe(
concatMap(i => i),
toArray(),
catchError(error => {
throw error;
}),
finalize(() => {
this.loading = false;
})
)));
It's worth mentioning that the concat method is already deprecated.