2
Reply

What is the use of SwitchMap in angular?

Umesh  Kumar

Umesh Kumar

3y
1.6k
1
Reply

    SwitchMap switches to the most recent observable.Whenever SwitchMap subscribes to a new inner observable, it unsubscribes from the previous one.

    if you want to convert observable then go for swtichMap() for example you got a Observable<HttpResponse> to Observable<Customers> then use switchMap.