NestJS · Junior · Question 26 of 75

What does @Injectable() mark?

Explanation

Register the class in a module's providers too. Without that, Nest can't resolve it.

Further reading

Problem with a question

NestJS · Junior · question 26

Test yourself

Take the NestJS · Junior quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz