Skip to content
This repository was archived by the owner on Feb 26, 2024. It is now read-only.

Commit 7b6e8ed

Browse files
gilboxvicb
authored andcommitted
fix: fork the zone in first example (README)
1 parent d907590 commit 7b6e8ed

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ You can run code within a zone with `zone.run`.
2020
Tasks scheduled (with `setTimeout`, `setInterval`, or event listeners) stay within that zone.
2121

2222
```javascript
23-
zone.run(function () {
23+
zone.fork().run(function () {
2424
zone.inTheZone = true;
2525

2626
setTimeout(function () {

0 commit comments

Comments
 (0)