Recall & Review
beginner
What is NgRx in Angular?
NgRx is a library for managing state in Angular apps using a Redux-inspired pattern with actions, reducers, and a single store.
Click to reveal answer
beginner
When might NgRx be considered overkill?
NgRx is overkill when your app has simple state needs, few components sharing state, or when local component state is enough.
Click to reveal answer
beginner
What are simpler alternatives to NgRx for small Angular apps?
You can use Angular's built-in services with BehaviorSubject or simple component @Input/@Output bindings for small or simple state needs.
Click to reveal answer
intermediate
Why can using NgRx in small apps slow down development?
NgRx adds boilerplate code and complexity, which can slow development if the app doesn't need advanced state management.
Click to reveal answer
intermediate
What signs show your Angular app might benefit from NgRx?
Signs include complex state logic, many components needing shared state, undo/redo features, or time-travel debugging needs.
Click to reveal answer
Which situation suggests NgRx might be overkill?
✗ Incorrect
NgRx is best for complex shared state. Simple apps with few components usually don't need it.
What is a simpler alternative to NgRx for small Angular apps?
✗ Incorrect
Angular services with BehaviorSubject provide simple state sharing without NgRx complexity.
What is a downside of using NgRx in a small app?
✗ Incorrect
NgRx adds extra code and complexity which is not needed in small apps.
Which feature is a good reason to use NgRx?
✗ Incorrect
Undo/redo features require complex state management that NgRx supports well.
NgRx is inspired by which pattern?
✗ Incorrect
NgRx uses Redux's pattern of a single store, actions, and reducers.
Explain when NgRx might be too much for an Angular app and what simpler options exist.
Think about app size and state complexity.
You got /4 concepts.
List signs that show an Angular app would benefit from using NgRx.
Consider app complexity and features.
You got /4 concepts.