NgRx Angular ਲਈ ਇੱਕ Redux-ਪ੍ਰੇਰਿਤ state-management library ਹੈ। ਇਹ ਐਪਲੀਕੇਸ਼ਨ state ਨੂੰ ਇੱਕ ਸਿੰਗਲ immutable store ਵਿੱਚ ਕੇਂਦਰੀ ਕਰਦਾ ਹੈ, RxJS ਉੱਤੇ ਬਣੇ ਸਖ਼ਤ, ਪੂਰਵਅਨੁਮਾਨਯੋਗ, ਇੱਕ-ਦਿਸ਼ਾ ਡੇਟਾ ਵਹਾਅ ਦੇ ਨਾਲ।
ਮੂਲ ਟੁਕੜੇ ਅਤੇ ਵਹਾਅ
Component dispatches an ACTION →
REDUCER produces new state (pure function) →
STORE updates →
SELECTORS read state →
Component re-renders
(EFFECTS handle side effects like HTTP, dispatching new actions)
