Angular Industry Standards Flashcards
7 cards from real Angular Web Framework practice questions. Tap to flip, then mark Knew It or Still Learning โ missed cards come back until you master them.
Read the first 7 Angular Industry Standards flashcards as text
What is the recommended state management approach for large-scale Angular enterprise applications?
Answer: Use NgRx or similar Redux-pattern library
NgRx provides a predictable, unidirectional data flow with DevTools support, making it the industry standard for large Angular apps.
According to Angular industry standards, when should you use OnPush change detection strategy?
Answer: For performance-sensitive components with immutable inputs or observable-driven data
OnPush reduces the number of change detection cycles by only running when inputs change reference or an observed event fires.
What Angular feature is considered the modern industry standard for lazy loading feature modules?
Answer: loadChildren with dynamic import() in route definitions
Using dynamic import() in loadChildren tells the Angular router and bundler to create a separate chunk loaded on demand.
Which accessibility (a11y) practice is mandated by US federal standards for Angular web apps?
Answer: WCAG 2.1 Level AA compliance
US federal agencies must meet WCAG 2.1 Level AA under Section 508, and industry best practice applies the same standard broadly.
What is the recommended pattern for unsubscribing from RxJS observables in Angular components?
Answer: Use takeUntilDestroyed() or async pipe to manage subscriptions
takeUntilDestroyed() (Angular 16+) or the async pipe are the modern standards for preventing memory leaks from observable subscriptions.
In an Angular monorepo, what tool has become the industry standard for managing multiple projects?
Answer: Nx (formerly Nrwl)
Nx provides advanced caching, affected-project detection, code generators, and dependency graph visualization tailored for Angular monorepos.
What is the Angular community standard for organizing shared code across multiple feature modules?
Answer: Create a SharedModule or shared library (in Nx) imported by feature modules
A SharedModule (or shared Nx library) consolidates reusable components, pipes, and directives to avoid duplication across feature modules.