GithubHelp home page GithubHelp logo

kryndex / zone.js Goto Github PK

View Code? Open in Web Editor NEW

This project forked from angular/zone.js

0.0 2.0 0.0 2.18 MB

Implements Zones for JavaScript

Home Page: https://github.com/angular/zone.js

License: MIT License

HTML 2.16% CSS 0.02% JavaScript 5.59% TypeScript 91.49% Shell 0.74%

zone.js's Introduction

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

Standard API support

zone.js patched most standard web APIs(such as DOM events, XMLHttpRequest...) and nodejs APIs (EventEmitter,fs ...), for more details, please see STANDARD-APIS.md for more details.

Non standard API support

And now we are adding support to some non standard APIs, such as MediaQuery, Notification. Please see NON-STANDARD-APIS.md for more details.

Promise A+ test passed

Promises/A+ 1.1 compliant

License

MIT

zone.js's People

Contributors

btford avatar mhevery avatar jialipassion avatar vicb avatar igorminar avatar juliemr avatar marclaval avatar alexeagle avatar vikerman avatar jeffbcross avatar patrickjs avatar alxhub avatar brooooooklyn avatar jteplitz avatar rkirov avatar jahtalab avatar sjelin avatar robwormald avatar unframework avatar kwintenp avatar hmdhk avatar mtsmfm avatar chuckjaz avatar caitp avatar platosha avatar schmuli avatar woppa684 avatar robdodson avatar poxrud avatar petebacondarwin avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.