blob: 85bbb3aacc5e35aa360b90261374b9b25bd95a80 [file] [log] [blame]
Sean Condon5ca00262018-09-06 17:55:25 +01001/*
2 * Copyright 2018-present Open Networking Foundation
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17/**
18 * This file includes polyfills needed by Angular and is loaded before the app.
19 * You can add your own extra polyfills to this file.
20 *
21 * This file is divided into 2 sections:
22 * 1. Browser polyfills. These are applied before loading ZoneJS and are sorted by browsers.
23 * 2. Application imports. Files imported after ZoneJS that should be loaded before your main
24 * file.
25 *
26 * The current setup is for so-called "evergreen" browsers; the last versions of browsers that
27 * automatically update themselves. This includes Safari >= 10, Chrome >= 55 (including Opera),
28 * Edge >= 13 on the desktop, and iOS 10 and Chrome on mobile.
29 *
30 * Learn more in https://angular.io/docs/ts/latest/guide/browser-support.html
31 */
32
33/***************************************************************************************************
34 * BROWSER POLYFILLS
35 */
36
37/** IE9, IE10 and IE11 requires all of the following polyfills. **/
38// import 'core-js/es6/symbol';
39// import 'core-js/es6/object';
40// import 'core-js/es6/function';
41// import 'core-js/es6/parse-int';
42// import 'core-js/es6/parse-float';
43// import 'core-js/es6/number';
44// import 'core-js/es6/math';
45// import 'core-js/es6/string';
46// import 'core-js/es6/date';
47// import 'core-js/es6/array';
48// import 'core-js/es6/regexp';
49// import 'core-js/es6/map';
50// import 'core-js/es6/weak-map';
51// import 'core-js/es6/set';
52
53/** IE10 and IE11 requires the following for NgClass support on SVG elements */
54// import 'classlist.js'; // Run `npm install --save classlist.js`.
55
56/** IE10 and IE11 requires the following for the Reflect API. */
57// import 'core-js/es6/reflect';
58
59
60/** Evergreen browsers require these. **/
61// Used for reflect-metadata in JIT. If you use AOT (and only Angular decorators), you can remove.
62import 'core-js/es7/reflect';
63
64
65/**
66 * Web Animations `@angular/platform-browser/animations`
67 * Only required if AnimationBuilder is used within the application and using IE/Edge or Safari.
68 * Standard animation support in Angular DOES NOT require any polyfills (as of Angular 6.0).
69 **/
70// import 'web-animations-js'; // Run `npm install --save web-animations-js`.
71
72/**
73 * By default, zone.js will patch all possible macroTask and DomEvents
74 * user can disable parts of macroTask/DomEvents patch by setting following flags
75 */
76
77 // (window as any).__Zone_disable_requestAnimationFrame = true; // disable patch requestAnimationFrame
78 // (window as any).__Zone_disable_on_property = true; // disable patch onProperty such as onclick
79 // (window as any).__zone_symbol__BLACK_LISTED_EVENTS = ['scroll', 'mousemove']; // disable patch specified eventNames
80
81 /*
82 * in IE/Edge developer tools, the addEventListener will also be wrapped by zone.js
83 * with the following flag, it will bypass `zone.js` patch for IE/Edge
84 */
85// (window as any).__Zone_enable_cross_context_check = true;
86
87/***************************************************************************************************
88 * Zone JS is required by default for Angular itself.
89 */
90import 'zone.js/dist/zone'; // Included with Angular CLI.
91
92
93
94/***************************************************************************************************
95 * APPLICATION IMPORTS
96 */