Angular Best Practices & Optimization
Optimizes Angular application performance and code quality through signals, reactive patterns, and efficient rendering techniques.
This skill provides a comprehensive set of rules and implementation patterns for building high-performance Angular applications. It guides developers through critical optimizations including Signal-based change detection, eliminating async waterfalls with RxJS, reducing bundle sizes using lazy loading and the @defer block, and ensuring efficient server-side rendering (SSR). Whether you are refactoring legacy components or architecting a new project with the latest Angular features, these guidelines ensure optimal rendering efficiency, smaller bundle footprints, and maintainable state management.
主な機能
01Signal-based change detection and OnPush strategy implementation
02High-efficiency rendering with modern control flow and trackBy
03Async operation optimization using RxJS and parallel data fetching
040 GitHub stars
05Bundle size reduction via lazy loading and deferred views (@defer)
06Server-side rendering (SSR) hydration and TransferState patterns
ユースケース
01Refactoring Angular components to use Signals and OnPush change detection for better performance
02Upgrading legacy template syntax and structural directives to modern Angular control flow
03Diagnosing and fixing performance bottlenecks and async waterfalls in complex data-driven views