Directive property binding
Directive property binding is used to pass values to directive inputs, allowing us to modify directive behavior dynamically.
Built-in directive
Angular provides several built-in directives that we can use right out of the box. These are categorized into three types:
Component directives: Components are directives with templates. They use the @Component
decorator.
Structural directives: These directives change the DOM layout by adding and removing elements.
Attribute directive: These directives change the appearance or behavior of an element.
Custom directive
Custom directives allow us to create reusable behaviors specific to our application.
Attribute property binding
Attribute property binding is used when we need to set HTML attributes that don’t have corresponding DOM properties.