|
Download lang/angular-changedetection.jsonl from winapiadmin/tinycodinglm: direct link, hf CLI and curl.
- Browser
- Download file 1.24 kB
-
https://huggingface.co/datasets/winapiadmin/tinycodinglm/resolve/b27bfb3b3b87c2465708a5b87f622c503f21ad4b/lang/angular-changedetection.jsonl
- Command line
-
hf download hf://datasets/winapiadmin/tinycodinglm@b27bfb3b3b87c2465708a5b87f622c503f21ad4b/lang/angular-changedetection.jsonl
-
curl -L -o angular-changedetection.jsonl https://huggingface.co/datasets/winapiadmin/tinycodinglm/resolve/b27bfb3b3b87c2465708a5b87f622c503f21ad4b/lang/angular-changedetection.jsonl
1.24 kB
| {"type": "session", "harness": "opencode", "id": "angular-changedetection", "name": "Angular Change Detection"} | |
| {"type": "message", "message": {"role": "system", "content": "You are an expert software engineer."}} | |
| {"type": "message", "message": {"role": "user", "content": "How does Angular's change detection work?"}} | |
| {"type": "message", "message": {"role": "assistant", "content": "Angular has two scheduling modes:\n\nZone-based (traditional):\n1. Zone.js intercepts async operations\n2. NgZone.onMicrotaskEmpty emits when microtask queue empties\n3. NgZoneChangeDetectionScheduler triggers ApplicationRef._tick()\n\nZoneless (modern):\n1. ChangeDetectionScheduler.notify(source) explicit notifications\n2. Multiple notifications coalesced into single tick\n3. Uses scheduleCallbackWithRafRace\n\nComponent strategies:\n- Default: always checked during CD (LViewFlags.CheckAlways)\n- OnPush: only checked when dirty, inputs change, or signals update\n\nDirty checking: detectChangesInternal -> detectChangesInViewWhileDirty -> detectChangesInView. Infinite loop protection (>100 reruns throws error).\n\nSignal integration: signal updates set ViewTreeTraversal flag. Computed signals lazily re-evaluate when dependencies change."}} | |