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 --yesCustomize in the configurator
New files
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
<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>
+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);− } }
<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
.gitignoreREADME.mdangular.jsonpackage.jsonpublic/robots.txtsrc/app/app.config.tssrc/app/app.htmlsrc/app/app.routes.tssrc/app/app.tssrc/app/components/counter/counter.htmlsrc/app/components/counter/counter.tssrc/app/pages/about/about.htmlsrc/app/pages/about/about.tssrc/app/pages/home/home.htmlsrc/app/pages/home/home.tssrc/app/services/counter.service.tssrc/index.htmlsrc/main.tssrc/styles.csstsconfig.app.jsontsconfig.json