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.
Loading...
Related Quiz
- Which Route Guard is especially useful for feature modules that are lazy-loaded?
- Which tag is used for multi-slot content projection in Angular?
- For handling complex state transitions in Ngxs, one would utilize ________.
- When using OnPush change detection strategy, what can cause a component to be checked, besides changes to its input properties?
- The routerLink directive can be bound to an array, allowing you to pass ________ to the route.