Question · Angular course · Module 10: State Management

The createFeatureSelector function

What is createFeatureSelector<SamuraiState>('samurai') used for in NgRx?

Answer options

  • It creates a side effect for the feature
  • It selects an entire branch of the state (the feature) by its name
  • It defines the loading action for the feature
  • It registers the reducer in the module

You can check the correct answer by solving this task in the CodeWorlds game.