Sobes.tech
Middle

Have you managed to try Angular Signals — on projects or at home?

sobes.tech AI

Answer from AI

Angular Signals are a new reactive model in Angular that simplifies state management and UI updates. Currently, Signals are actively being developed and are available in experimental versions of Angular.

If possible, it's worth trying Signals in small home projects or prototypes to understand their advantages: a simpler and more efficient way to track changes compared to RxJS or traditional approaches.

Example of using Signals:

import { Component, signal } from '@angular/core';

@Component({
  selector: 'app-counter',
  template: `
    <button (click)="increment()">Increment</button>
    <p>Count: {{ count() }}</p>
  `
})
export class CounterComponent {
  count = signal(0);

  increment() {
    this.count.update(c => c + 1);
  }
}

If Signals are not yet used at work, you can study them at home to be ready for future projects.