What is a zone context?
Execution Context is an abstract concept that holds information about the environment within the current code being executed. A zone provides an execution context that persists across asynchronous operations is called as zone context. For example, the zone context will be same in both outside and inside setTimeout callback function,
zone.run(() => {// outside zoneexpect(zoneThis).toBe(zone);setTimeout(function () {// the same outside zone exist hereexpect(zoneThis).toBe(zone);});});
The current zone is retrieved through Zone.current
.
May 24, 2022
209
Read more
What is Angular Framework?
November 04, 2022
AngularWhat is a Angular module?
November 03, 2022
AngularWhat are the steps to use animation module?
October 31, 2022
Angular