DEV Community

PREMA latha
PREMA latha

Posted on

Title: My First Angular Blog – Learning Signals Step by Step

I am a frontend developer with 5.7 years of experience.
Recently, I started learning Angular Signals.

At first, I was confused:

  1. What is a signal?
  2. Why do we need it?
  3. How is it different from normal variables?

In this post, I am writing what I understood in a simple way.

  • What confused me?

What confused me initially was understanding how signals update the UI automatically.
In older Angular code, we use variables and observables, but signals work differently.


  • What I learned?

A signal is a reactive value.
When the value changes, Angular automatically updates the UI.
We don’t need manual subscriptions or change detection.


  • One small example

ts file

count = signal(0);

increment() {
this.count.set(this.count() + 1);
}

This simple example helped me understand signals better.


Top comments (0)