Angular Directives

📘 Angular 👁 117 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

🤖 AI Quizer Assistant

📝 Quiz
📚 Categories
🏆 Leaderboard
📊 My Score
❓ Help
👋 Hi! I'm your AI quiz assistant for Quizer.in!

I can help you with:
• 📝 Finding quizzes
• 🏆 Checking leaderboard
• 📊 Your performance stats

Type 'help' to get started! 🚀
AI is thinking...