Angular Template Type-Checking
summary
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
chapters (8)
- 0:00Start
- 2:25Research Study
- 5:07Strict Templates
- 5:18Example
- 9:26Dollar Event Object
- 10:11Embedded View
- 16:57Amount Change Event Emitter
- 20:37How Do You Get to Strict Mode








