I just started getting into the Angular2 change detection engine.
I read the Honram blog posts on the topic (those that were in ZoneJS and Angular2 zones), but there is still 1 term that I cannot find to define.
Here is an excerpt from this post:
NgZone is basically a forked zone that extends its API and adds some additional functionality to the execution context. One of the things he adds to the API is the following set of custom events that we can subscribe to, since they are observable threads:
onTurnStart () - notifies subscribers before starting Angular. Throws an event once for a browser task that is being processed by Angular.
onTurnDone () - Notifies subscribers immediately after the completion of the Angular s zone of processing the current rotation and any microtasks scheduled from this queue.
onEventDone () - notifies subscribers immediately after the final callback onTurnDone () before the end of the VM event. Useful for testing to check application status
I understand the concept of the zone and it can be branched out, the only problem I have encountered is VM turnand VM eventfor which I can not find any definition.
What are these virtual events and turns? Are they part of ZoneJS, Angular, or just a browser?
Thanks Avi.
source
share