pickstack

Angular + Built-in

Shared store using the framework's own reactivity (runes / signals); no package. This page shows exactly what pickstack adds to a Angular project for Built-in: the packages, the new files and the changes to existing ones. Every combination is installed, built, linted and tested in CI.

$ npm create pickstack@latest my-app -- --framework angular --modules builtin --yes
Customize in the configurator

New files

src/app/services/counter.service.ts
import { Injectable, signal } from "@angular/core";

@Injectable({ providedIn: "root" })
export class CounterService {
  private readonly value = signal(0);
  readonly count = this.value.asReadonly();

  increment(): void {
    this.value.update((value) => value + 1);
  }

  decrement(): void {
    this.value.update((value) => value - 1);
  }
}

Changes to existing files

src/app/components/counter/counter.html (changed)
 <div class="card">+  <p class="count">{{ counter.count() }}</p>−  <p class="count">{{ count() }}</p>   <div class="row">+    <button type="button" class="btn" (click)="counter.decrement()">-1</button>+    <button type="button" class="btn" (click)="counter.increment()">+1</button>−    <button type="button" class="btn" (click)="decrement()">-1</button>−    <button type="button" class="btn" (click)="increment()">+1</button>   </div> </div>  
src/app/components/counter/counter.ts (changed)
+import { Component, inject } from "@angular/core";+import { CounterService } from "../../services/counter.service";−import { Component, signal } from "@angular/core";   @Component({   selector: "app-counter",   templateUrl: "./counter.html", }) export class Counter {+  protected readonly counter = inject(CounterService);−  protected readonly count = signal(0);− −  protected increment(): void {−    this.count.update((value) => value + 1);−  }− −  protected decrement(): void {−    this.count.update((value) => value - 1);−  } }  
src/app/pages/about/about.html (changed)
 <section class="page">   <h1 class="title">About</h1>+  <p class="text">+    Built with Angular 22, TypeScript, Angular signals service.+  </p>−  <p class="text">Built with Angular 22, TypeScript.</p> </section>  

Project files

Related templates