~/talk

Angular Template Type-Checking

Talkat AngularUP Experience 2020 · 2020-11-30..12-03· [angular, typescript]
slides:none on file

Angular 9+ with Ivy adds three template type checking levels that catch template bugs earlier: basic/full/strict modes. The compiler now checks bindings, embedded views (NgFor), $event types, and pipes; strict mode validates deeper property types and makes $event strongly typed. Toggle with fullTemplateTypeCheck and strictTemplates flags in tsconfig.json. A Microsoft study found ~15% of JS bugs are preventable with types. Example fixes include correcting undefined/null bindings, enforcing pipe input types, and using static coercion hints like ngAcceptInputType_back to allow attribute-style booleans.

AI-written summary · about

  1. 0:00Start
  2. 2:25Research Study
  3. 5:07Strict Templates
  4. 5:18Example
  5. 9:26Dollar Event Object
  6. 10:11Embedded View
  7. 16:57Amount Change Event Emitter
  8. 20:37How Do You Get to Strict Mode
~/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.