Click in order · Angular course · Module 5: Services and DI
The providers field in @Component
Build the entry that registers a service at the component level (one line):
Items to click
- TrainingService
- [
- providers
- ]
- :
You can check the correct answer by solving this task in the CodeWorlds game.