Course lesson

Create an Angular Signal Which Stores a Value

This lesson teaches how to create a signal in Angular with the signal function from @angular/core. Signals need an initial value, which can be a primitive, object, or any other valid expression in JavaScript.

Duration
1 min
Access
Free
Transcript
Retained from source evidence

This lesson teaches how to create a signal in Angular with the signal function from @angular/core. Signals need an initial value, which can be a primitive, object, or any other valid expression in JavaScript.

TypeScript infers the signal's type and catches errors during compilation.