Ivy Is Coming!
summary
Ivy in Angular 8 runs opt‑in via enableIvy in tsconfig and cuts a real example app’s main bundle by about ~50% bundle reduction (roughly 500KB → ~250KB) by changing generated code into static, tree‑shakable instructions. Using ngc output shows factories move into component statics, compiler output shrinks, template errors become informative, and compilation speeds improve. The demo loads components with ES6 import() and dynamic component loading via import()+renderComponent, fixes injector scoping by passing an Injector, and even prototypes HOC‑like component wrapper using private APIs, which works but is experimental.
AI-written summary · about
chapters (10)
- 0:00Introduction and Angular IV
- 1:57What is Ivy and its benefits
- 3:26Bundle size reduction with Ivy
- 5:38Ivy compiler internals
- 8:04Tree shaking in Angular
- 9:31Better debugging with Ivy
- 10:14Dynamic component loading
- 15:28Dynamic components without modules
- 18:07Advanced Ivy features
- 23:51Summary and future of Ivy








