angular-best-practices

Apply Angular performance best practices for rendering and bundle size.

Updated Mar 8, 2026
One-click install
npx skills add https://github.com/AisleiAvila/loja --skill angular-best-practices-aisleiavila
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: angular-best-practices
Source: https://github.com/AisleiAvila/loja/tree/main/.github/skills/angular-best-practices
Command: npx skills add https://github.com/AisleiAvila/loja --skill angular-best-practices-aisleiavila

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This guide provides structured, actionable Angular performance best practices to help teams optimize rendering, bundles, and overall UX.

Core Features & Use Cases

  • Change Detection: OnPush, Signals, and zoneless patterns to reduce unnecessary checks.
  • Bundle & Rendering: Lazy loading, @defer, trackBy, and virtualization to improve load times.
  • SSR & Memory: Hydration strategies and memory management for scalable apps.

Quick Start

Review the top-priority Angular performance guidelines and apply OnPush/change-detection patterns to a component in your project.

Frequently Asked Questions about angular-best-practices

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I optimize Angular change detection for better performance?

Apply OnPush, Signals, and zoneless patterns to optimize Angular change detection, reducing unnecessary checks and improving rendering performance during component design and refactoring.

What is the best way to reduce Angular bundle size and improve load times?

Reduce Angular bundle size by implementing lazy loading, leveraging the @defer block, applying trackBy in loops, and utilizing virtualization to improve initial load times and rendering efficiency.

How does SSR hydration work for scalable Angular applications?

SSR hydration strategies reattach event listeners to existing server-rendered DOM, avoiding flicker and reducing memory overhead, which yields scalable Angular applications with optimized UX.

Can I use these Angular performance guidelines during code reviews?

Yes, you can apply these prioritized Angular performance guidelines during code reviews, component design, refactoring, and onboarding to enforce actionable standards for change detection, lazy loading, and SSR.

When do I need to use trackBy and virtualization in Angular?

Use trackBy and virtualization in Angular when rendering large datasets or complex lists to minimize DOM manipulation overhead, optimize rendering cycles, and significantly reduce overall bundle size.