~/talk

Stronger Type-Checking in Templates with Ivy

Talkat ng-conf 2020: Hardwired · 2020-04-01..04-03· [angular, typescript]
slides:none on file

Angular Ivy adds strictTemplates which infers types inside templates (ngFor loop variables, $event types), enforces input assignability (catches async pipe nulls) and fixes safe‑navigation bugs; migration uses incremental flags like strictInputTypes and strictNullInputTypes so large apps can toggle checks off while fixing code; implementation generates TypeScript type‑check blocks, feeds them to tsc and maps errors back to original template locations.

AI-written summary · about

  1. 0:00Intro
  2. 1:31What is strict Templates?
  3. 3:19Color scheme
  4. 4:19Type Checking in v8
  5. 5:46Checked in basic mode
  6. 5:58fullTemplateTypeCheck Mode
  7. 6:31Examples
  8. 8:29strict Templates: ngFor
  9. 10:48Safe navigation setup
  10. 12:15strict Templates: Safe navigation
  11. 13:08Enabling strict Templates
  12. 13:56Why disable specific checks?
  13. 15:34strictSafeNavigation Types: false
  14. 15:51strictDomEventTypes: false
  15. 17:13Example Template
  16. 17:55Generated Type-checking Code
  17. 20:29Summary
~/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.