Introduction
State Management Library for Angular applications
ng-state
is a controlled nested state container designed to help write performant, consistent applications on top of Angular 2. It is powered by RxJs
and ImmutableJs
and was inspired by @ngrx.
Version 9.1.0 introduces injectable actions!!! 🔥
Version 9.0.0 introduces signalActions!!! 🔥
From version 8.0.0 ng-state supports signals!!! 🔥
From version 6.0.0 ng-state supports 2 data providers!!! 🔥
Core tenets:
State is a single immutable data structure
Each component gets its own peace of nested state
State accessed with
actions
variable under component or theStore
, an observable of state and an observer of global state
These core principles enable building components that can use the OnPush
change detection strategy giving you intelligent, performant change detection throughout your application.
ng-state
share same core as react-state-rxjs
so it is very beneficial for those who are not bind to one technology.
How it is different from others please read on Main differences page.
Last updated