DiY Angular Compiler
summary
Live demo walks through using ng build --prod and ngc to drop the in-browser compiler from a 2 MB vendor bundle to ~76 KB served over gzip by uglify and compression the demo removes unused modules (forms, HTTP), uses source-map-explorer to find the compiler at 46% of the bundle, inspects generated .ngfactory output, edits factories to change templates, implements DI by adding provider getters that lazy-create instances, and flips directive flag bits so lifecycle hooks like ngOnInit actually run — the hacks work live against an ng-conf demo app.
AI-written summary · about
chapters (13)
- 0:00Start
- 1:23Meet The Speaker
- 2:37Agenda
- 15:05Change Detection in Angular 1
- 15:58Change Detection in React
- 18:07Angular 2 Performance Game Plan
- 19:04The Angular Compiler
- 19:50HTML Parser Advantages
- 23:52Coming Soon - Language Services
- 25:27Exploring the Compiler
- 40:39Looking Inside
- 52:30Switching to Compiled Code
- 58:13Exercise 1 - Title to uppercase








