A

Admin • 828.70K Points
Coach

Q. Which decorator is used to mark a class as an injectable service?

  • (A) @Injectable
  • (B) @Service
  • (C) @Component
  • (D) @Directive
  • Correct Answer - Option(A)
  • Views: 18
  • Filed under category Angular JS
  • Hashtags:

Explanation by: Admin
@Injectable allows Angular's dependency injection system to provide the service.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.