What is the main difference between hot and cold observables in Angular?

  • Cold observables emit values when subscribed to.
  • Cold observables share their subscription with all subscribers.
  • Hot observables emit values when subscribed to.
  • Hot observables share their subscription with all subscribers.
The main difference between hot and cold observables is that hot observables emit values when subscribed to, while cold observables emit values individually for each subscriber.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *