When does a cold observable start emitting values?
- After a timeout set by the developer.
- Immediately upon creation.
- When explicitly triggered by calling a method.
- When subscribed to by at least one observer.
A cold observable starts emitting values when subscribed to by at least one observer, and each observer gets its independent sequence of values.
Loading...
Related Quiz
- To validate that at least one control within a Form Array has a specific value, you would use a _______ validator.
- You are building a registration form and want to ensure that the password and confirm password fields match. Which approach would you use to validate this?
- You are testing a custom pipe that transforms user input into a URL-friendly format. What edge cases should you consider in your tests?
- Using lazy loading, Angular loads additional JavaScript files when the user _______.
- What does a service in Angular typically consist of?