0
0
Angularframework~5 mins

NgRx store concept in Angular - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
Recall & Review
beginner
What is the NgRx Store in Angular?
NgRx Store is a state management library for Angular apps. It helps keep app data in one place, making it easier to manage and share across components.
Click to reveal answer
beginner
How does NgRx Store help with app state?
NgRx Store keeps the app state in a single, immutable object. This means the state can't be changed directly but only through specific actions, making the app predictable.
Click to reveal answer
beginner
What are Actions in NgRx Store?
Actions are simple objects that describe what happened in the app. They tell the store how to update the state.
Click to reveal answer
intermediate
What role do Reducers play in NgRx Store?
Reducers are pure functions that take the current state and an action, then return a new state. They decide how the state changes based on actions.
Click to reveal answer
intermediate
Why is immutability important in NgRx Store?
Immutability means the state object is never changed directly. Instead, a new state object is created on every change. This helps track changes clearly and avoid bugs.
Click to reveal answer
What does the NgRx Store primarily manage in an Angular app?
AApp state
BRouting
CHTTP requests
DComponent templates
Which NgRx concept describes an event that triggers state change?
AReducer
BSelector
CEffect
DAction
What must a reducer function always return?
AAn action
BThe same state object
CA new state object
DA component
Why is the state in NgRx Store immutable?
ATo allow direct changes
BTo prevent bugs and track changes clearly
CTo speed up rendering
DTo store UI templates
Which of these is NOT part of the NgRx Store pattern?
AComponents
BReducers
CActions
DSelectors
Explain how NgRx Store manages state in an Angular app.
Think about how data flows and changes in the app.
You got /4 concepts.
    Describe the roles of Actions and Reducers in NgRx Store.
    Consider who tells the store what happened and who decides how state changes.
    You got /4 concepts.