A

Admin • 828.70K Points
Coach

Q. How can you create a custom directive in Angular?

  • (A) By using the @Directive decorator
  • (B) By using the @Component decorator
  • (C) By extending the Directive class
  • (D) By creating a service
  • Correct Answer - Option(A)
  • Views: 16
  • Filed under category Angular JS
  • Hashtags:

Explanation by: Admin
Custom directives are defined with the @Directive decorator.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.