Built-in directives
Directives encapsulate coded behaviors that can be applied as attributes to HTML elements or other components:
Name | Syntax | Purpose |
Structural Directives |
|
Controls the structural layout of the HTML and if elements get added or removed from the DOM |
Attribute Directives |
|
Listens to and modifies the behavior of other HTML elements, attributes, properties, and components, such as CSS classes, HTML styles, and HTML form elements |