Hacking the Angular compiler with your own syntax
summary
Demonstrates replacing Angular template syntax with emoji and adding reactive template primitives by hooking into the build: a custom HTML loader rewrites external templates, a TypeScript transformer (using tsquery on the AST) rewrites inline template strings, and ngx-build-plus is used to flip the compiler option directTemplateLoading and inject a new compiler instance. The demo shows emoji → verbose directives emitted at build time (AOT/JIT) and a published GitHub library for observable-event decorators that works in practice.
AI-written summary · about
chapters (6)
- 0:00Introduction and motivation
- 3:57Angular compiler overview
- 14:10Custom HTML loader setup
- 18:44Emoji syntax demo
- 25:27Practical use case with reactivity
- 29:21Key takeaways and conclusion
related talks
26mMaster Tooling by Hacking the Angular Compiler
01h 55mDiY Angular Compiler
32mDeep Dive into the Angular Compiler
18mMad science with the Angular Compiler
21mMad Science with the Angular Compiler
21mWhere & How You Write Your Code
31mHidden gems in Angular: hybrid rendering, new routing features, and beyond
28mAccelerating Angular
