A

Admin • 833.24K Points
Coach

Q. How is a custom directive defined in Angular?

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

Explanation by: Admin

@Directive is used to create custom structural or attribute directives in Angular.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.