NestJS · Junior · Question 26 of 75
What does @Injectable() mark?
- ✓Correct answer: A class that Nest's DI container can manage and inject
- 2A class that is exposed as an HTTP route
- 3A class that runs in a worker thread
Explanation
Register the class in a module's providers too. Without that, Nest can't resolve it.