Put in order · NestJS course · Module 1: NestJS Basics

NestJS Service Declaration

Arrange the elements of a NestJS service declaration in the correct order:

Items to put in order

  • LegionService
  • @Injectable()
  • { methods }
  • export class
Show the answer

Correct order:

  1. @Injectable()
  2. export class
  3. LegionService
  4. { methods }