State Management with Standalone Components and Signals
Angular now allows state management using Signals.
import { signal } from "@angular/core";
export class CounterStore { counter = signal(0);
increment() { this.counter.update((value) => value + 1); }}