Check out a free preview of the full Building Awesomer Apps with Angular course:
The "Challenge 5: Services" Lesson is part of the full, Building Awesomer Apps with Angular course featured in this preview video. Here's what you'd learn in this lesson:

In this challenge, you will create a widgets service class and a widgets collection.

Get Unlimited Access Now

Transcript from the "Challenge 5: Services" Lesson

[00:00:00]
>> Lukas Ruebbelke: So what I want you to do, extract the widgets collection to a widgets service. Add the widgets service to the application module, so those it can be consumed. Man, I'm just basically telling you what to do here. Inject that widgets service into the widgets component, consume and display the new widgets collection.

[00:00:17] Now, for bonus, create a widget interface and strongly type selectedWidget in the widgets collection. If you get stuck on this, look at what I'm doing in the items component.