A

Admin • 828.03K Points
Coach

Q. How do you add metadata to an Angular component to define its selector, template, and styles?

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

Explanation by: Admin
@Component decorator includes metadata such as selector, template, styles.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.