A

Admin • 833.24K Points
Coach

Q. What is `@Injectable()` used for in Angular?

  • (A) To declare a class as a service that can be injected
  • (B) To inject CSS styles
  • (C) To bind data to templates
  • (D) To create directives
  • Correct Answer - Option(A)
  • Views: 23
  • Filed under category Angular JS
  • Hashtags:

Explanation by: Admin

`@Injectable()` marks a class as available to be provided and injected as a dependency.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.