Question · Angular course · Module 6: Signals
Creating a Signal
How do we create a basic signal in Angular?
Answer options
- const count = new Signal(0)
- const count = signal(0)
- const count = createSignal(0)
- @Signal() count = 0
You can check the correct answer by solving this task in the CodeWorlds game.