NgRx คือไลบรารีการจัดการสถานะที่ได้แรงบัญชาจาก Redux สำหรับ Angular ซึ่งรวมศูนย์สถานะของแอปพลิเคชันไว้ใน 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)
