Directives

  • A directive is a class decorated with @Directive
  • A Components is just a directive with added template features
  • Built-in directives include structural directives and attribute directives

They can be thought of as custom attributes for transforming content. They can be applied to native HTML (Private) elements or custom components.

Types of Directives

There are two types of directives: Attribute and Structural.


Children
  1. Attribute
  2. Structural

Backlinks