A deep dive into Angular's internals explaining how reactivity and change detection work via Zone.js. Covers how the NGC compiler outputs template functions with render flags (Create/Update), how refreshView and detectChanges are called, how ApplicationRef.tick triggers re-renders, and how Zone.js monkey-patches async APIs like setTimeout and addEventListener to automatically trigger change detection without explicit developer calls. Also demonstrates what happens when Zone.js is disabled and how to manually trigger change detection in that scenario.

21m read timeFrom playfulprogramming.com
Post cover image
Table of contents
Post contentsConsider supporting

Sort: