Standalone Components vs NgModules: An Angular Architecture Decision Guide
Choose standalone components for new Angular apps; keep NgModules only for legacy code or library compatibility.
ReadMeFeed / Community knowledge
Real questions. Useful conversations. Find the people who know your stack.
Choose standalone components for new Angular apps; keep NgModules only for legacy code or library compatibility.
Learn how to spot duplicate RxJS emissions, identify the root causes, and apply targeted fixes to prevent memory leaks in long‑lived services and components.
Bind [virtualScroller] and lazy=true on p-table to keep the DOM bounded and fetch only visible rows from your backend.
Learn to configure Angular Material CDK virtual scrolling for large lists: fixed-height setup, buffer tuning, dynamic-height strategies, server-side paging coordination, and common pitfalls that break virtualization.
Add signal-based state to one feature without rewriting your reducers, effects, or selectors.
Architecture note on adopting NgRx Entity Adapter for normalized collection state: requirements, minimal design, trust boundaries, operational checks, failure modes, and design-change triggers for Angular applications.
Use mat-form-field with matInput for Angular Material inputs in Reactive Forms. It handles validation, floating labels, and WAI-ARIA attributes automatically, reducing manual accessibility boilerplate.
Entity adapter automates normalized state management in NgRx, eliminating manual updates and enabling O(1) lookups with typed helpers like addOne and selectAll.
Angular's OnPush strategy cuts change-detection cycles by skipping components whose inputs haven't changed by reference. Learn the immutable data rules, zone pitfalls, and verification steps that make it work.