ngxs – state management using NGXS in angular

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

  1. It has switch statements.
  2. It is more similar to Angular style
  3. Dependency Injection
  4. The problem of Boilerplate.
  5. Effects can be painful.
  6. We listen for the dispatched actions
  7. We extend in abundance

The four principles

  • STORE
  • ACTIONS
  • STATE
  • SELECTS

Comments