codejump

Actions & Reducers

Preview — 3 of 10 questions

What is NgRx and what problem does it solve?

AA reactive state management library for Angular based on Redux principles, providing a centralized, predictable, and immutable store
BA CSS-in-JS library for Angular components
CA testing framework for Angular services and components
DA router extension that adds state to URL parameters

What is an NgRx action?

AA TypeScript class that extends NgModule
BA plain object with a type string property that describes an event in the application
CA function that directly modifies the state tree
DAn Observable that emits state changes

What is a reducer in NgRx?

AA pure function that takes the current state and an action, and returns a new state object
BA service that fetches data and updates the store
CA directive that renders state values in the template
DA class that manages subscriptions to the store

Sign up free to play

Answer all 10 questions (7 more), see explanations for every answer, and track your score.