This is a recording of Rainer Hahnekamp's live workshop on "NgRx Signal Store". For more free monthly workshops, sign up on courses.angula...
Пікірлер: 8
@onnorh7314 сағат бұрын
github code?
24 күн бұрын
Can we get the source code of the example used in this workshop @RainerHahnekamp? I am interested in assertDefined(question) technic, thank you so much.
@wasit-shafi29 күн бұрын
very informative video, is the source code publicly available anywhere..?
@AngularTraining28 күн бұрын
I think this should be close enough: github.com/ngrx/signal-store-starter
@RomanMatkivskyy25 күн бұрын
Hi! Thanks for such a great content, SignalStore is very powerful, but i cant figure out how to solve a complex scenario without using actions or without injecting all services inside the store. I'll try to create an example (a bit forced, but it's just to create some complexity). U have this function that takes a response to a quiz and validates it online, in base of response u have to interact with the UI and decide what to do: ``` 1. U submit a quiz response to an API
@AngularTraining24 күн бұрын
It's not the store's job to notify the user. You can keep the store focused on updating the state and have some sort of facade service that calls the store and then sends notifications. That way, such a service is never injected into the store. You don't want to tie UI features into business logic.
@RomanMatkivskyy24 күн бұрын
@@AngularTraining it would be nice to have a video on the integration of this pattern with the new signalStore :)
@AngularTraining24 күн бұрын
@@RomanMatkivskyy Yes, though it's not different from any regular Angular service. There are quite a few videos on the facade pattern with NgRx including this one from Rainer: kzbin.info/www/bejne/gWXHoYmOqs2gZ5Y