A

Admin • 825.56K Points
Coach

Q. Which decorator is used to create a service in Angular?

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

Explanation by: Admin
`@Injectable()` makes a class available for dependency injection.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.