From the course: Learning NgRx

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Challenge: Use NgRx to load forecast data

Challenge: Use NgRx to load forecast data - Angular Tutorial

From the course: Learning NgRx

Start my 1-month free trial

Challenge: Use NgRx to load forecast data

(intensifying swooshes) - [Instructor] In this third challenge, you are going to practice a little bit by writing some more NgRx code for our weather app. In the previous videos, we created actions and effects to add news codes and load increment conditions. Now, we want to use NgRx to render the five-day forecast for a given location. Everything is already wired up in the app. There is a service to get to day tides already there, and everything is already working. But the thing is, it's not using NgRx yet. So if I click on the link here, we get to the five-day forecast of that given location, but it's not using NgRx. So what I want you to do is brainstorm how you would do it with NgRx using actions, review service or effects. So I'll let you think about that, try to make it work with some code, and you can clone the repository at the URL showing up on the screen right now to get started, and I'll be back with you in a few minutes for the solution.

Contents