A

Admin • 802.91K Points
Coach

Q. What is the use of @Injectable decorator in Angular?

  • (A) To define a pipe
  • (B) To define a component
  • (C) To define a service for dependency injection
  • (D) To define a module
  • Correct Answer - Option(C)
  • Views: 6
  • Filed under category Angular JS
  • Hashtags:

Explanation by: Admin
@Injectable marks a class as available for dependency injection.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.