Setting Up the Selectors
Learn how to use the NgRx selectors to retrieve data from the store.
We'll cover the following...
Introduction to NgRx selectors
A reducer’s job is to update the store with the new data. To retrieve this new data from the store and display it in the component, NgRx provides selectors.
NgRx provides the createFeatureSelector()
function to create a selector. The createFeatureSelector()
function takes in a string
as its argument.
This string
defines which slice of the store we are interested in. It returns the specified slice of the store.
The ...