Something went wrong. Try again.
[READ-ONLY] Mirror of https://github.com/crutchcorn/new-angular. Reimplementing Angular from scratch for educational purposes crutchcorn.github.io/new-angular
Something went wrong. Try again.
1234567891011121314151617181920class Zone { constructor() { this.tasks = []; }
// Add a new task to the zone add(task) { this.tasks.push(task); }
// Run all the tasks in the zone run() { currentZone = this; this.tasks.forEach(task => task.task()); }}
var currentZone = new Zone();
export {Zone, currentZone};