https://github.com/bodnya29179/angular-ngxs
https://github.com/bodnya29179/angular-ngxs
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/bodnya29179/angular-ngxs
- Owner: bodnya29179
- Created: 2023-08-06T19:05:38.000Z (almost 2 years ago)
- Default Branch: master
- Last Pushed: 2023-08-06T21:51:53.000Z (almost 2 years ago)
- Last Synced: 2023-08-06T22:29:39.325Z (almost 2 years ago)
- Language: TypeScript
- Size: 221 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Angular NGXS
- **NGXS** is a state management pattern and library for Angular. NGXS acts as a single source of truth for your application's state - providing simple rules for predictable state mutations.
- **NGXS** is modeled after the CQRS pattern - a pattern implemented in state management libraries such as NgRx and Redux. NGXS combines this pattern with TypeScript's classes and decorators to create a state management library with minimal boilerplate.
## Installation
```
npm install @ngxs/store --save
```### Devtools (optional)
```
npm install @ngxs/devtools-plugin --save-dev
```## Structure
NGXS is made up of 4 main components:
* Store;
* Actions;
* State;
* Select.## Workflow / Architecture

## References
1. [State Management in Angular Using NGXS](https://auth0.com/blog/state-management-in-angular-with-ngxs-part-1/).