/NgZone

Examples about NgZone and how to improve UI events performance.

Primary LanguageTypeScriptMIT LicenseMIT

Optimization-UI-Events-NgZone

Angular (5.0.0-rc.2) samples using NgZone to improve performance when your application works with UI events (async task in general).

You can see several sample applications, a basic one that explains the relationship of NgZone with the Angular change detector which uses a 'noop' Zone to run the application without NgZone, and two other applications using NgZone that work with mouse events simulating drag & drop. The first one is not optimized with NgZone and the second one is.

Prerequisites

  • NodeJS - The package manager to install dependencies
  • VSCode - To view the code of the samples
  • Git - To get the code of the samples

Installing and Running

Install dependencies:

npm install

Run in development environment:

ng serve

Run in production environment: N/A yet (TODO)

Demos

Author

License

This project is licensed under the MIT License - see the LICENSE.md file for details