Angular Directives

📘 Angular 👁 78 views 📅 Nov 14, 2025
⏱ Estimated reading time: 1 min

Angular Directives

Directives in Angular are instructions that modify the DOM. They add behavior to elements, components, or attributes.

Types of Directives

  • Component Directives: Custom components (@Component).
  • Structural Directives: Change DOM layout (*ngIf, *ngFor, *ngSwitch).
  • Attribute Directives: Change appearance or behavior (ngStyle, ngClass).

Examples

Visible Content
{{ item }}

Styled Text


🔒 Some advanced sections are available for Registered Members
Register Now

Share this Post


← Back to Tutorials

Popular Competitive Exam Quizzes