Question 1Easy
Which function creates a writable signal?
- observable()
- state()
- ref()
- signal()
Answer: D. signal()
Explanation
const count = signal(0).
Step-by-step solution
- Angular API.
Why the other options are wrong
- A. observable() is not an Angular function that creates signals.
- B. state() is not an Angular function for writable signals.
- C. ref is Vue's API, not Angular's way to create a signal.