Module vs Module
summary
Distinguishes ES2015 modules as individual code files that export/import versus Angular modules (NgModule classes) that declare components, directives, pipes and configure providers, imports, exports and bootstrap; shows shared-module pattern bundling CommonModule FormsModule and a star component; demonstrates lazy loading only works when there are feature modules, routes are grouped under a componentless parent route, and the feature module is not imported elsewhere so the bundle can be fetched separately and improve startup performance.
AI-written summary · about
chapters (12)
- 0:00Angular modules intro
- 1:02ES2015 vs Angular modules
- 3:13Angular module structure
- 6:46Imports array and router
- 8:14Root vs child router
- 10:24Breaking large modules
- 11:52Feature and common modules
- 13:58Shared reusable components
- 16:08Purpose of Angular modules
- 17:56Lazy loading in Angular
- 18:58Lazy loading prereqs
- 21:25Summary
related talks
31mLegend of ngModules - Angular 2 and Beyond
18mStandalone Components: The Motivation
18mStandalone Components The Motivation
18mAngular's Future w/out NgModules Architectures w/Standalone Components
18mModules are not what you think they are
29mAdv Lazy Loading w/ Angular
28mUnleash The Power Of Angular With Knowledge of Patterns
36m"Standalone" APIs: A Component-focused Angular
