This video will guide you through the Angular State Management using NGXS.
We will start by installing the library and then we will see how to create:
the state
the actions
the selectors
and last but not least, how to use the selectors in your component
Chapters:
0:00 Intro
3:40 Install and import NGXS
5:00 Create the State
9:23 Create the Actions and use them in the State
11:20 Mutate the state for a dispatched Action
14:36 Dispatch an Action from the Component
15:54 Create and use a Selector in the Component
19:21 Solution of the Toggle Item
20:30 Thank you
✨ Code: https://github.com/profanis/codeShots...
✨ For more, visit the official NGXS site: https://www.ngxs.io/
******************************************************
Let's connect
******************************************************
Twitter: / prodromouf
LinkedIn: / prodromouf
#angular #statemanagement #angulartutorial #ngxs