ngxs is a library for state management built designed on how angular works and seeks to solve the same problem of redux. In the ngxs is built-in libraries that help us to manage the application states. You can say that ngxs are the built-in libraries’ pattern of state management.
The benefits of ngxs
- It has switch statements.
- It is more similar to Angular style
- Dependency Injection
- The problem of Boilerplate.
- Effects can be painful.
- We listen for the dispatched actions
- We extend in abundance
The four principles
- STORE
- ACTIONS
- STATE
- SELECTS
Comments
Post a Comment