I tried to build my dream (simple) state management for Angular
My Angular course: https://angularstart.com/
We've talked a lot about this idea of using RxJS and Signals for state management, where RxJS handles data sources and events and Signals handles representing the state.
To make this process and easier and more declarative I've been working with Chau Tran to develop a utility called signalSlice.
signalSlice docs: https://ngxtension.netlify.app/utilities/signals/signal-slice/
Example implementations of signalSlice:
https://github.com/joshuamorony/angularstart-chat/tree/signalSlice
https://github.com/joshuamorony/angularstart-quicklists/tree/reducerSignal
https://github.com/joshuamorony/angularstart-giflist/tree/signalSlice
Get weekly content and tips exclusive to my newsletter: https://mobirony.ck.page/4a331b9076
Want to build mobile apps with Angular?: https://ionicstart.com
0:00 Introduction
1:35 Signal Slice
1:54 Creating state
2:09 Selectors
2:24 Sources
2:56 Action Sources
3:49 More declarative?
#angular #rxjs #signals
- More tutorials: https://modernangular.com
- Follow me on Twitter: https://twitter.com/joshuamorony