Interviews2 answers
What is the use of SwitchMap in angular?
2 Answers
SwitchMap switches to the most recent observable.
Whenever SwitchMap subscribes to a new inner observable, it unsubscribes from the previous one.
Pranam BhatPosted May 21, 2021, 11:17 AM EDT
if you want to convert observable then go for swtichMap() for example you got a Observable<HttpResponse> to Observable<Customers> then use switchMap.
saravanakumar radhakrishnanPosted May 15, 2021, 4:27 AM EDT

