
Angular Cookbook
By :

In the previous recipe, we created an NgRx effect to fetch third-party API data as users, and we saved it in the Redux store. That's what we have as a starting point in this recipe. We have an effect that fetches the users from api.randomuser.me
and stores it in the state, and we don't currently show anything on the user interface (UI). In this recipe, you'll create some NgRx selectors to show users on the Home page as well as on the User Detail page with similar users.
The project for this recipe resides in chapter06/start_here/using-ngrx-selector
:
npm install
to install the dependencies of the project. ng serve -o
. This should open the app in a new browser tab. As soon as the page is opened, you should see the app, as follows:
Figure 6.16 – Using ngrx-selectors...