A

Admin • 833K Points
Coach

Q. Which RxJS operator is used to switch to a new observable on emission?

  • (A) mergeMap
  • (B) switchMap
  • (C) concatMap
  • (D) map
  • Correct Answer - Option(B)
  • Views: 25
  • Filed under category Angular JS
  • Hashtags:

Explanation by: Admin

switchMap unsubscribes from previous observables and subscribes to the latest one.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.