Files
antigravity-skills-reference/skills/angular-best-practices
sck_0 aa71e76eb9 chore: release 6.5.0 - Community & Experience
- Add date_added to all 950+ skills for complete tracking
- Update version to 6.5.0 in package.json and README
- Regenerate all indexes and catalog
- Sync all generated files

Features from merged PR #150:
- Stars/Upvotes system for community-driven discovery
- Auto-update mechanism via START_APP.bat
- Interactive Prompt Builder
- Date tracking badges
- Smart auto-categorization

All skills validated and indexed.

Made-with: Cursor
2026-02-27 09:19:41 +01:00
..
2026-02-04 08:58:45 +01:00
2026-02-04 08:58:45 +01:00

Angular Best Practices

Performance optimization and best practices for Angular applications optimized for AI agents and LLMs.

Overview

This skill provides prioritized performance guidelines across:

  • Change Detection - OnPush strategy, Signals, Zoneless apps
  • Async Operations - Avoiding waterfalls, SSR preloading
  • Bundle Optimization - Lazy loading, @defer, tree-shaking
  • Rendering Performance - TrackBy, virtual scrolling, CDK
  • SSR & Hydration - Server-side rendering patterns
  • Template Optimization - Structural directives, pipe memoization
  • State Management - Efficient reactivity patterns
  • Memory Management - Subscription cleanup, detached refs

Structure

The SKILL.md file is organized by priority:

  1. Critical Priority - Largest performance gains (change detection, async)
  2. High Priority - Significant impact (bundles, rendering)
  3. Medium Priority - Noticeable improvements (SSR, templates)
  4. Low Priority - Incremental gains (memory, cleanup)

Each rule includes:

  • WRONG - What not to do
  • CORRECT - Recommended pattern
  • 📝 Why - Explanation of the impact

Quick Reference Checklist

For New Components:

  • Using ChangeDetectionStrategy.OnPush
  • Using Signals for reactive state
  • Using @defer for non-critical content
  • Using trackBy for *ngFor loops
  • No subscriptions without cleanup

For Performance Reviews:

  • No async waterfalls (parallel data fetching)
  • Routes lazy-loaded
  • Large libraries code-split
  • Images use NgOptimizedImage

Version

Current version: 1.0.0 (February 2026)

References