A

Admin • 825.56K Points
Coach

Q. How do you add metadata to an Angular component?

  • (A) Using @NgModule decorator
  • (B) Using @Component decorator
  • (C) Using @Directive decorator
  • (D) Using @Injectable decorator
  • Correct Answer - Option(B)
  • Views: 10
  • Filed under category Angular JS
  • Hashtags:

Explanation by: Admin
The @Component decorator defines component metadata.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.