Share
Embed
Rethinking Angular: The Future with Signal Store and the New Resource API @JAX 2024 in Mainz
Manfred Steyer PRO
May 01, 2026
Transcript
27 slides
-
•Textmasterformat bearbeiten • Zweite Ebene Mastertextformat bearbeiten Rethinking Angular: The
Future with Signal Store and the New Resource API ANGULARarchitects.io -
•Textmasterformat bearbeiten • Zweite Ebene Mastertextformat bearbeiten Application Code as
a Script Control-Flow Centric -
•Textmasterformat bearbeiten • Zweite Ebene Mastertextformat bearbeiten Marble Run Data
Binding Data-Flow-Centric -
•Textmasterformat bearbeiten • Zweite Ebene Mastertextformat bearbeiten 5 How to
Switch to a More Data-Flow-Centric Design? -
•Textmasterformat bearbeiten • Zweite Ebene Mastertextformat bearbeiten 6 How to
Switch to Reactive Thinking? -
•Textmasterformat bearbeiten • Zweite Ebene Mastertextformat bearbeiten 7 1) Signal
Graph: Signals and Resource API 2) NgRx SignalStore with Resources 3) DEMO Agenda -
•Textmasterformat bearbeiten • Zweite Ebene Mastertextformat bearbeiten 8 About Me
(Remote) Angular Workshops and Consulting Google Developer Expert for Angular Blog, Books, Articles, and Talks about Angular Manfred Steyer, ANGULARarchitects.io -
•Textmasterformat bearbeiten • Zweite Ebene Mastertextformat bearbeiten 10 cakes =
signal(['Sacher Cake', 'Pancake', 'Ice Cream Pancake']); selected = signal(2); selectedCake = computed(() => this.cakes()[this.selected()]); cakeResource = createCakeResource(this.selectedCake); details = this.cakeResource.value; error = this.cakeResource.error; A Simple First Example … -
•Textmasterformat bearbeiten • Zweite Ebene Mastertextformat bearbeiten 21 Unidirectional Data
Flow Component Store "Intention" Signal sync/ async computed() computed() -
•Textmasterformat bearbeiten • Zweite Ebene Mastertextformat bearbeiten 22 Two Reasons
for a Store Manage State Streamline Dataflow -
•Textmasterformat bearbeiten • Zweite Ebene Mastertextformat bearbeiten 24 NGRX Signal
Store export const FlightBookingStore = signalStore( { providedIn: 'root' }, […] ); -
•Textmasterformat bearbeiten • Zweite Ebene Mastertextformat bearbeiten 25 NGRX Signal
Store export const FlightBookingStore = signalStore( { providedIn: 'root' }, withState({ from: 'Paris', to: 'London', […] }), […] ); -
•Textmasterformat bearbeiten • Zweite Ebene Mastertextformat bearbeiten 26 NGRX Signal
Store export const FlightBookingStore = signalStore( { providedIn: 'root' }, withState({ from: 'Paris', to: 'London', […] }), withComputed(([…]) => ({ […] })), withMethods(([…]) => ({ })), withHooks({ […] }) ); -
•Textmasterformat bearbeiten • Zweite Ebene Mastertextformat bearbeiten 27 NGRX Signal
Store export const FlightBookingStore = signalStore( { providedIn: 'root' }, withState({ from: 'Paris', to: 'London', […] }), withComputed(([…]) => ({ […] })), withMethods(([…]) => ({ })), withHooks({ […] }), withResource([…]}), withDevtools([…]}), withUndoRedo(), ); -
•Textmasterformat bearbeiten • Zweite Ebene Mastertextformat bearbeiten 29 Signals, SignalStore,
and Signal Forms Angular Signals Fast Track Free Download: angular-signals.com -
•Textmasterformat bearbeiten • Zweite Ebene Mastertextformat bearbeiten 31 Architecture Rule
#1 Derive state where possible (sync: computed, async: Resource API) Architecture Rule #2 Reactive Helpers (e.g., Resource API, Signal Store) streamline your reactive flow Conclusion -
•Textmasterformat bearbeiten • Zweite Ebene Mastertextformat bearbeiten 33 [Social Media]
Manfred Steyer [web] ANGULARarchitects.io Manfred Steyer @ Manfred Steyer Slides & Examples Remote Company Workshops and Consulting http://angulararchitects.io