Skip to content

Guide

The guide is organised by what you are trying to do. If you are starting out, the Learn path is a better entry point — it introduces the same material one idea at a time.

Start here

Four pages carry most of the weight. Reading them in this order is worth an afternoon:

  1. The mental model — the principles the API follows, and what craft adds to Angular if you want the inventory first
  2. Which primitive should I use? — the five-way decision you make constantly
  3. Anatomy of a primitive — the shape all five share
  4. Generators and yield* — the tracking channel everything is built on
  5. Insertions — how behaviour is composed

By topic

Managing state

Local state · query · Mutations · queryParams · asyncProcess · Collections · Persistence · Selecting · Reacting to mutations · Schema validation

Structuring the app

craftService · Service scopes · Shaping the public API · Abstract services · Integrating existing Angular code · App start · Lazy services

Inject at the point of use

Routing and type-safe DI

Setup · CLI automation · ESLint rules · Route providers · Guards · Exception handling · Pending UI · Route load errors · Scaling routes

Components and templates

Components · Fine-grained reactivity · Directives and .pipe(...) · Customization · Content projection · Encapsulated styles

Forms

Overview · Validators · Submitting · Nested forms

Testing

Services · Components · Type-level tests · Browser boundaries

Reactivity utilities

craftComputed · craftEffect · craftMethod · source$ · on$

Going further

Program operators · Pattern matching · Observability

Looking for one symbol?

The API index lists every export with a one-line description.