Quick Start
Render a JSON spec as a live Angular component tree in 5 minutes.
Angular 20+ project with @ngaf/render installed. See the Installation guide if you need setup help.
Define a simple Angular component that will be rendered by the spec. Every rendered component receives inputs matching the AngularComponentInputs interface -- your custom props are spread alongside the standard inputs.
Map element type names to Angular component classes using defineAngularRegistry().
A spec describes the UI tree as a flat map of elements. The root key points to the entry element.
Open http://localhost:4200. You should see "Hello from @ngaf/render!" rendered by your TextComponent.
Adding Reactive State
Specs become powerful when you connect them to a state store. Props with $state expressions read from the store reactively.
Clicking the button updates the store, which reactively updates the rendered TextComponent label from "World" to "Angular".
Using Spec-Embedded State
You can also embed initial state directly in the spec. When no external store is provided, RenderSpecComponent automatically creates an internal signalStateStore from spec.state: