What is a Subject in the context of RxJS?

  • A design pattern for components
  • A special type of Observable
  • A type of HTTP request
  • An operator for filtering Observables
In RxJS, a Subject is a special type of Observable that allows values to be multicasted to multiple Observers. It can act as both an Observable and an Observer, making it useful for pub-sub patterns.
Add your answer
Loading...

Leave a comment

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