Friday 19 March 2021

Attribute Directive

Attribute directives deal with changing the look and behavior of an element, component, or another directive.


When to use ?

These are used when we  want logic or events to change the appearance or behavior of the view.
When we have a UI element that will be common throughout our app, we can implement an attribute directive and share it across components and modules to avoid repeating the code for the same functionality.

No comments:

Post a Comment