Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Modern Angular with the NGRX Signal Store New R...
Search
Manfred Steyer
PRO
September 17, 2024
Programming
0
330
Modern Angular with the NGRX Signal Store New Rules for Your Architecture @BASTA! 2024 in Mainz
Manfred Steyer
PRO
September 17, 2024
Tweet
Share
More Decks by Manfred Steyer
See All by Manfred Steyer
Successful with Signals: 3 Rules for Your Architecture
manfredsteyer
PRO
0
44
Successful with Signals: 3 Rules for Your Architecture @.NET UserGroup Bern
manfredsteyer
PRO
0
22
Improving Your Architecture with Forensic Analysis
manfredsteyer
PRO
0
63
Micro Frontends Unmasked: Opportunities, Challenges, Alternatives
manfredsteyer
PRO
0
250
Modern Angular with the NGRX Signal Store New Rules for Your Architecture @BASTA 2024 in Mainz
manfredsteyer
PRO
0
24
Successful with Signals: 3 Patterns for Your Architecture
manfredsteyer
PRO
0
93
Native Federation: The Future of Micro Frontends in Angular
manfredsteyer
PRO
0
340
Architectures with Lightweight Stores: New Rules and Options
manfredsteyer
PRO
0
290
3 Effective Rules for Success with Signals in Angular
manfredsteyer
PRO
1
270
Other Decks in Programming
See All in Programming
dbt-ga4パッケージを実業務に導入してみた話
t_tokumaru_feedcorp
0
120
Frontend Magic mit CSS Houdini
joergneumann
0
420
2024-10-02 dev2next - Application Observability like you've never heard before
jonatan_ivanov
0
160
上手に付き合うコンポーネントテスト
quramy
3
1.2k
M5Stackボードの選び方
tanakamasayuki
0
200
선언형 UI를 학습할 때 알아둬야하는 키워드들
l2hyunwoo
0
110
Assembling the Future: crafting the missing pieces of the Ruby on Wasm puzzle
skryukov
0
130
フロントエンドの現在地とこれから
koba04
10
4.2k
Applied NLP in the Age of Generative AI
inesmontani
PRO
3
1.1k
Cohesion in Modeling and Design
mploed
3
180
CSC509 Lecture 01
javiergs
PRO
1
200
ACES Meet におけるリリース作業改善の取り組み
fukucheee
0
120
Featured
See All Featured
Creatively Recalculating Your Daily Design Routine
revolveconf
217
12k
Automating Front-end Workflow
addyosmani
1365
200k
Building Applications with DynamoDB
mza
90
6k
Mobile First: as difficult as doing things right
swwweet
222
8.8k
Robots, Beer and Maslow
schacon
PRO
157
8.2k
RailsConf 2023
tenderlove
28
840
Unsuck your backbone
ammeep
667
57k
Clear Off the Table
cherdarchuk
91
320k
CoffeeScript is Beautiful & I Never Want to Write Plain JavaScript Again
sstephenson
158
15k
Designing the Hi-DPI Web
ddemaree
279
34k
Adopting Sorbet at Scale
ufuk
73
8.9k
WebSockets: Embracing the real-time Web
robhawkes
59
7.3k
Transcript
AngularArchitects.io | @ManfredSteyer Modern Angular with the NGRX Signal Store
New Rules for Your Architecture
"Krapfen"
None
None
Small Change => Huge Impact
What if we changed for a lightweight store?
How do Lightweight Stores Change Architecture Rules?
Stores Streamline Reactive Flow Component Lightweight Store method() Observables, Signals,
etc. sync/ async
Two Reasons for a Store Manage State Streamline Dataflow
None
None
None
Stores Streamline Reactive Flow Component Lightweight Store method() Observables, Signals,
etc. sync/ async Currently: Main Use Case for Signas
Some Lightweight Stores … Akita Elf Pinia NGRX Signal Store
Agenda 1) Baseline Architecture 2) How Large Should a Store
be? 3) Where To Put The Store? 4) Global and/or Local State? 5) Preventing Cycles, Redundancies, and Inconsistencies
About me… Manfred Steyer, ANGULARarchitects.io (Remote) Angular Workshops and Consulting
Google Developer Expert for Angular Blog, Books, Articles, and Talks about Angular Manfred Steyer
Baseline Architecture
Stack NGRX Signal Store Angular Nx Monorepo
Booking Boarding Shared Feature Feature Feature Feature Feature UI UI
UI UI UI UI UI UI UI Data Data Data Data Data Data Util Util Util Util Util Util Enterprise Monorepo Patterns, Nrwl 2018: https://tinyurl.com/y2jjxld7 @ManfredSteyer Smart Comp. Dumb Comp.
Nx Libs: Modularization Incremental CI/CD Build Cache Parallelization in Builds
Sheriff: Module Boundaries on a per-folder basis @softarc/eslint-plugin-sheriff Works with
and without Nx
Nx & Sheriff Folders: Modularization Incremental CI/CD Build Cache Parallelization
in Builds Sheriff
Demo
How Granular Should it be?
Feature Sub- Feature
Where to put the Store?
Booking Boarding Shared Feature Feature Feature Feature Feature UI UI
UI UI UI UI UI UI UI Domain Domain Domain Domain Domain Domain Util Util Util Util Util Util Enterprise Monorepo Patterns, Nrwl 2018: https://tinyurl.com/y2jjxld7 @ManfredSteyer Feature
Feature UI Data Util Redux Feature Slice
Feature UI Data Util Lightweight Stores Cmp Cmp Lightweight Stores
can live everywhere! Component vs. Module Exposed vs. Hidden
Demo
Global vs. Local State?
Global vs. Local FeatureStore DomainStore FeatureService UtilityStore
Demo
Cycles, Redundancies, and Inconsistencies
Let's think it through … • Layering • Prevent Stores
accessing each other • Redux DevTools
Demo
Free eBook (6th Edition) angularArchitects.io/ebook
Conclusion Lightweight Stores … … size of a (sub-)feature …
can live everywhere … orchestrated by a feature service … leverage layering to prevent cycles … Use DevTools!
Conclusion NGRX … … de facto standard for State Management
in Angular … Signal Store: lightweight and highly extensible
Conclusion Architecture … … vertically sliced by domains … horizontally
by layers … enforced by Sheriff … fast builds with Nx … visualized with Detective
"Krapfen"
ManfredSteyer AngularArchitects.io Slides & Examples Remote Company Workshops and Consulting
http://angulararchitects.io