Which NgRx library function is used to define actions in a state management setup?
- createAction
- createEffect
- createFeatureSelector
- createReducer
In NgRx, the function used to define actions in a state management setup is createAction. Actions are a crucial part of state management, representing events that can change the application's state.
Loading...
Related Quiz
- What does the ChangeDetectionStrategy.OnPush strategy signify in an Angular component?
- In an Angular application, how would you use the async pipe to ensure that a component automatically unsubscribes from an Observable when the component is destroyed?
- What is the purpose of using the providedIn property when creating a service in Angular?
- You've been given a task to add PWA (Progressive Web App) capabilities to your existing Angular application. Which Angular CLI command would you use to achieve this?
- When testing a directive, which testing utility can be used to interact with a directive's host element?