What is ng-state?
RxJS and ImmutableJs powered nested state management for Angular 2+ applications inspired by @ngrx/store. It is simple, fast, reliable with no boilerplate.
ng-state is a tool in the State Management Library category of a tech stack.
ng-state is an open source tool with 14 GitHub stars and 2 GitHub forks. Here’s a link to ng-state's open source repository on GitHub
Who uses ng-state?
ng-state Integrations
ng-state's Features
- Developers do not need to remember long nested paths to access stores
- Decouples / Hides paths to state from components
- Uses Redux like pure functions - actions to interact with state
- No boilerplate
- It is highly performant because of rxjs and ImmutableJS or Immer
- Because of immutable data structure nobody can mutate state
- Keeps state manipulation class close to component Actions but separated which reduces boiler plate and enables cleaner unit testing
- Uses Redux like messages for communication between not related components Dispatcher
- Easy to test Test actions
- Has Redux DevTools integration and Time Travel functionality
- Can restore state from server Server Side Rendering (SSR)
ng-state Alternatives & Comparisons
What are some alternatives to ng-state?
jQuery
jQuery is a cross-platform JavaScript library designed to simplify the client-side scripting of HTML.
React
Lots of people use React as the V in MVC. Since React makes no assumptions about the rest of your technology stack, it's easy to try it out on a small feature in an existing project.
AngularJS
AngularJS lets you write client-side web applications as if you had a smarter browser. It lets you use good old HTML (or HAML, Jade and friends!) as your template language and lets you extend HTML’s syntax to express your application’s components clearly and succinctly. It automatically synchronizes data from your UI (view) with your JavaScript objects (model) through 2-way data binding.
Vue.js
It is a library for building interactive web interfaces. It provides data-reactive components with a simple and flexible API.
jQuery UI
Whether you're building highly interactive web applications or you just need to add a date picker to a form control, jQuery UI is the perfect choice.


