Master Tooling by Hacking the Angular Compiler
summary
Shows how to implement a custom template syntax by actually changing the build: use a custom HTML loader plus a webpack plugin (via ngx-build-plus) to set directTemplateLoading=false and replace the Angular compiler plugin, and add a TypeScript transformer to rewrite inline templates. Demonstration partially reimplements ngx-template-streams and successfully handles external and inline templates in JIT builds; AOT/production needs additional transforms and compatibility work, so it works but with known limits.
AI-written summary · about
chapters (10)
- 0:00Introduction
- 0:34Story Time
- 2:07Abstract Syntax Trees
- 2:42Tools
- 3:38About Dominic
- 5:10NGX Templates Streams
- 12:45Custom Template Syntax
- 17:51Inline Templates
- 18:19Transformer
- 24:51Key takeaways
related talks
30mHacking the Angular compiler with your own syntax
18mMad science with the Angular Compiler
20mThe Little Tool That Dreams Big
27mDemystifying Ahead-Of-Time compilation in Angular
01h 55mDiY Angular Compiler
32mDeep Dive into the Angular Compiler
21mMad Science with the Angular Compiler
19mWeb Components with Angular Elements: Beyond the Basics
