AoT and the New Angular Compiler
summary
Demonstrates using ngc and the Angular CLI with --prod --aot plus source-map-explorer to shrink a default app: bundle drops from ~300KB to 182KB and simulated mobile load time falls from ~5.5s to ~1.65s. Shows ngfactory output: a three-line template becomes ~100 lines of optimized DOM-creation and change-detection code, with compile-time type checks (example: multiplying a string title yields a TypeScript error). Notes renderer indirection still exists but AOT removes the runtime compiler and materially improves performance.
AI-written summary · about
chapters (7)
- 0:00Speaker introduction
- 3:06Shrinking Angular bundle
- 11:21Ahead-of-time compilation
- 16:28Why Angular needs a compiler
- 20:27Inside the Angular compiler
- 27:45Renderer and performance
- 30:59Future of Angular performance








