Implements Zones for JavaScript
TypeScript JavaScript HTML Other
Latest commit 787b636 Jan 12, 2017 @mhevery mhevery committed with mhevery chore: release v0.7.6
Permalink
Failed to load latest commit information.
dist chore: release v0.7.6 Jan 17, 2017
example Fixed the long stack trace example (#349) May 26, 2016
lib fix: #593, only call removeAttribute when have the method (#594) Jan 17, 2017
scripts fix #584, remove android 4.1~4.3, add no-ssl options to make android … Jan 12, 2017
test fix: #593, only call removeAttribute when have the method (#594) Jan 17, 2017
.clang-format build: add a clang-format task Oct 4, 2016
.gitignore chore: update .gitignore with build-esm Sep 10, 2016
.travis.yml Fix #532, Fix #566, add tslint in ci, add tslint/format/test/karma in… Jan 12, 2017
CHANGELOG.md chore: release v0.7.6 Jan 17, 2017
DEVELOPER.md Fix #532, Fix #566, add tslint in ci, add tslint/format/test/karma in… Jan 12, 2017
LICENSE chore: update license to MIT Jan 8, 2016
LICENSE.wrapped chore(everything): Major Zone Rewrite/Reimplementation Feb 29, 2016
README.md fix(doc): typo in comment and reformat README.md (#590) Jan 17, 2017
gulpfile.js fix: #536, add notification api patch (#599) Jan 17, 2017
karma-base.conf.js fix: Run tests on both the build as well as the dist folder (#514) Dec 18, 2016
karma-build-jasmine.conf.js fix: Run tests on both the build as well as the dist folder (#514) Dec 18, 2016
karma-build-mocha.conf.js fix: Run tests on both the build as well as the dist folder (#514) Dec 18, 2016
karma-build-sauce-mocha.conf.js fix: Run tests on both the build as well as the dist folder (#514) Dec 18, 2016
karma-build.conf.js fix: Run tests on both the build as well as the dist folder (#514) Dec 18, 2016
karma-dist-jasmine.conf.js fix: Run tests on both the build as well as the dist folder (#514) Dec 18, 2016
karma-dist-mocha.conf.js fix: Run tests on both the build as well as the dist folder (#514) Dec 18, 2016
karma-dist-sauce-jasmine.conf.js fix: Run tests on both the build as well as the dist folder (#514) Dec 18, 2016
karma-dist.conf.js fix: Run tests on both the build as well as the dist folder (#514) Dec 18, 2016
package.json chore: release v0.7.6 Jan 17, 2017
presentation.png readme: add ng-conf presentation Jan 27, 2014
sauce.conf.js fix #584, remove android 4.1~4.3, add no-ssl options to make android … Jan 12, 2017
tsconfig-esm.json chore(karma): get rid of web-pack Sep 2, 2016
tsconfig.json chore(karma): get rid of web-pack Sep 2, 2016
tslint.json build: enforce no var keyword Dec 28, 2016
webpack.config.js chore(everything): Major Zone Rewrite/Reimplementation Feb 29, 2016

README.md

Zone.js

Build Status CDNJS

Implements Zones for JavaScript, inspired by Dart.

If you're using zone.js via unpkg please provide a query param ?main=browser
https://unpkg.com/zone.js?main=browser
If you're using the following library, make sure you import them first

  • 'newrelic' as it patches global.Promise before zone,js does
  • 'async-listener' as it patches global.setTimeout, global.setInterval before zone,js does
  • 'continuation-local-storage' as it uses async-listener

NEW Zone.js POST-v0.6.0

See the new API here.

Read up on Zone Primer.

What's a Zone?

A Zone is an execution context that persists across async tasks. You can think of it as thread-local storage for JavaScript VMs.

See this video from ng-conf 2014 for a detailed explanation:

screenshot of the zone.js presentation and ng-conf 2014

See also

License

MIT