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.
Loading...
Related Quiz
- In Angular, what is the primary purpose of a component's class?
- In NgRx, the _____ is responsible for changing the state based on the action received.
- When defining routes, the _____ property specifies which component should be displayed when a particular path is navigated to.
- When debugging Protractor tests, you can insert a call to _____ to pause the test execution.
- If a pipe takes multiple input values, how should it be tested to ensure all cases are covered?