~/talk

Deep Dive into the Angular Compiler

Talkat AngularConnect 2019 · 2019-09-19..09-20· [angular]
slides:none on file

Angular's compiler reveals concrete internals: five phases (program, analysis, resolve, type-check, emit) and that partial evaluation interpreter almost runs TypeScript to evaluate decorator expressions (even RouterModule.forRoot), marking unreachable parts as dynamic. It builds NgModule compilation/export scopes to ID components for tree-shaking, constructs type-check blocks (TS-only code plus template offsets) to report precise template errors, and adds a ngFor static template hook so loop variables get correctly type-checked at build time.

AI-written summary · about

  1. 0:00Intro
  2. 2:19Templates + Code
  3. 4:01Example
  4. 6:49Program Creation
  5. 7:39Analysis
  6. 10:19A Compilation Model
  7. 12:38Features of the Compiler
  8. 13:54Compilation Scope
  9. 15:18Template Scoping
  10. 16:34Partial Evaluation
  11. 18:49Dynamic Expressions
  12. 22:07Approach
  13. 23:09Type Check Blocks
  14. 25:01Template Error Mapping
  15. 25:45HTML Templates
  16. 27:48Type Constructors
  17. 28:23Template Context Type
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.