UNPKG

1.63 kBPlain TextView Raw
1/**
2 * This file includes polyfills needed by Angular and is loaded before the app.
3 * You can add your own extra polyfills to this file.
4 *
5 * This file is divided into 2 sections:
6 * 1. Browser polyfills. These are applied before loading ZoneJS and are sorted by browsers.
7 * 2. Application imports. Files imported after ZoneJS that should be loaded before your main
8 * file.
9 *
10 * The current setup is for so-called "evergreen" browsers; the last versions of browsers that
11 * automatically update themselves. This includes Safari >= 10, Chrome >= 55 (including Opera),
12 * Edge >= 13 on the desktop, and iOS 10 and Chrome on mobile.
13 *
14 * Learn more in https://angular.io/docs/ts/latest/guide/browser-support.html
15 */
16
17/***************************************************************************************************
18 * BROWSER POLYFILLS
19 */
20
21/**
22 * By default, zone.js will patch all possible macroTask and DomEvents
23 * user can disable parts of macroTask/DomEvents patch by setting following flags
24 */
25
26(window as any).__Zone_disable_requestAnimationFrame = true; // disable patch requestAnimationFrame
27// (window as any).__Zone_disable_on_property = true; // disable patch onProperty such as onclick
28(window as any).__zone_symbol__BLACK_LISTED_EVENTS = [
29 'scroll',
30 'mousemove',
31 'message',
32 'mouseover',
33 'mouseout',
34 'mouseenter',
35 'mouseleave'
36]; // disable patch specified eventNames
37
38/***************************************************************************************************
39 * Zone JS is required by default for Angular itself.
40 */
41import 'zone.js/dist/zone'; // Included with Angular CLI.