Ngrx Component store tutorial - We explore the ComponentStore concept in ngrx to handle local state in components. We initially explore how we can directly use the ComponentStore Service inside the component to create a local state. We use setState method to initialize the store and patchState to partially update it. We also subscribe to the store.select() method to get the updates from the store. After that we explore the updater and effect methods in ComponentStore. Finally we create an angular service which extends the ComponentStore and move all the store related logic to that service.
Mistake in the video - providedIn: 'root' option is not needed in the service CheckboxStore as it is provided at component level providers array.
Github url :- https://github.com/anuroopjoy/ngrx-co...
00:00 - Introduction
02:39 - Install package
03:14 - ComponentStore direct usage
09:09 - Updater method
10:43 - Effect method
13:15 - Service extending ComponentStore
In questa pagina del sito puoi guardare il video online Ngrx Component store basics using Angular 12 project della durata di ore minuti seconda in buona qualità , che l'utente ha caricato JS Frameworks 15 settembre 2021, condividi il link con amici e conoscenti, su youtube questo video è già stato visto 2,429 volte e gli è piaciuto 41 spettatori. Buona visione!