Component-First Architecture with Angular Standalone Components
summary
Defines a Component‑First Architecture where UI is driven by standalone: true components that import their own directives and providers, use bootstrapApplication and provideRouter in main.ts, and remove NgModule indirection. Testing simplifies to importing the component into TestBed. NX generators scaffold apps, lazy‑loaded libraries and components with the nx generators flags that auto‑insert route constants. Recommends local state with ngrx component store and using provideIn or component metadata to avoid unexpected multiple provider instances.
AI-written summary · about
chapters (9)
- 0:00Introduction to Standalone
- 1:10Components vs NGModules
- 2:24Using and Loading Components
- 2:58Routing in Standalone
- 4:07Testing and Bootstrapping
- 5:32Component-First Architecture
- 7:04Architecture Benefits
- 9:04Routing and State Management
- 10:49NX Tooling and Conclusion
related talks
18mAngular's Future w/out NgModules Architectures w/Standalone Components
18mStandalone Components: The Motivation
18mStandalone Components The Motivation
32mLightweight Architectures with Angular's Latest Innovations
36m"Standalone" APIs: A Component-focused Angular
34mScalable Angular Architecture
25mAngular Architecture: From Patterns to Implementation
36mThe Era Of Standalone Apis
