Angular 2 change detection explained
summary
Angular 2 claims change detection is extremely fast by generating VM‑friendly per‑component change detector code and running a single top‑down pass after async work. It uses ZonesJS to monkey‑patch async APIs so NG Zone calls tick, supports OnPush with immutable inputs to skip subtrees, and uses observables plus ChangeDetectorRef.markForCheck to reopen paths. Demos show skipping a subtree in a 17 components tree and performing hundreds of thousands of checks in milliseconds.
AI-written summary · about
chapters (6)
- 0:00Start
- 1:04CHANGE DETECTION?
- 13:31WHAT THE HECK IS THE EVENT LOOP ANYWAY?
- 22:02SMARTER CHANGE DETECTION
- 29:03OBSERVABLES
- 31:46DEMO
related talks
44mAngular 2 Change Detection Explained
46mAngular 2 Change Detection Explained
01h 02mChange Detection, Zone.js and Other Monsters
19mThe Magic and Mystery of Angular Change Detection
41mState of change detection in Angular and how far are we from Zoneless applications ?
25mCan you imagine a future without zones?
30mOptimize and debug change detection like a pro
31mCan you imagine a future without zones?
