Angular / Angular basics
Difference between Directive and component in Angular.
Directives associate behavior to elements in the DOM, consisting of Structural, Attribute and Component types.
Components are a type of directive in Angular that allows utilizing web component functionality - encapsulated, reusable elements available throughout our application.
The main difference between a component and a directive is that a component has a template, while an attribute or structural directive does not have a template.
More Related questions...