Which directive is used to create a custom attribute in Angular?

  • @Attribute
  • @CustomAttribute
  • @Decorator
  • @Directive
In Angular, the @Directive decorator is used to create custom attributes. By defining a directive with this decorator, you can attach custom behavior or properties to elements in your Angular templates, creating custom attributes.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *