2 * Copyright (c) 2017 ZTE Corporation.
3 * All rights reserved. This program and the accompanying materials
4 * are made available under the terms of the Eclipse Public License v1.0
5 * and the Apache License 2.0 which both accompany this distribution,
6 * and are available at http://www.eclipse.org/legal/epl-v10.html
7 * and http://www.apache.org/licenses/LICENSE-2.0
10 * ZTE - initial API and implementation and/or initial documentation
14 * This file includes polyfills needed by Angular and is loaded before the app.
15 * You can add your own extra polyfills to this file.
17 * This file is divided into 2 sections:
18 * 1. Browser polyfills. These are applied before loading ZoneJS and are sorted by browsers.
19 * 2. Application imports. Files imported after ZoneJS that should be loaded before your main
22 * The current setup is for so-called "evergreen" browsers; the last versions of browsers that
23 * automatically update themselves. This includes Safari >= 10, Chrome >= 55 (including Opera),
24 * Edge >= 13 on the desktop, and iOS 10 and Chrome on mobile.
26 * Learn more in https://angular.io/docs/ts/latest/guide/browser-support.html
29 /***************************************************************************************************
33 /** IE9, IE10 and IE11 requires all of the following polyfills. **/
34 // import 'core-js/es6/symbol';
35 // import 'core-js/es6/object';
36 // import 'core-js/es6/function';
37 // import 'core-js/es6/parse-int';
38 // import 'core-js/es6/parse-float';
39 // import 'core-js/es6/number';
40 // import 'core-js/es6/math';
41 // import 'core-js/es6/string';
42 // import 'core-js/es6/date';
43 // import 'core-js/es6/array';
44 // import 'core-js/es6/regexp';
45 // import 'core-js/es6/map';
46 // import 'core-js/es6/weak-map';
47 // import 'core-js/es6/set';
49 /** IE10 and IE11 requires the following for NgClass support on SVG elements */
50 // import 'classlist.js'; // Run `npm install --save classlist.js`.
52 /** Evergreen browsers require these. **/
53 import 'core-js/es6/reflect';
54 import 'core-js/es7/reflect';
58 * Required to support Web Animations `@angular/animation`.
59 * Needed for: All but Chrome, Firefox and Opera. http://caniuse.com/#feat=web-animation
61 // import 'web-animations-js'; // Run `npm install --save web-animations-js`.
65 /***************************************************************************************************
66 * Zone JS is required by Angular itself.
68 import 'zone.js/dist/zone'; // Included with Angular CLI.
72 /***************************************************************************************************
77 * Date, currency, decimal and percent pipes.
78 * Needed for: All but Chrome, Firefox, Edge, IE11 and Safari 10
80 // import 'intl'; // Run `npm install --save intl`.
82 * Need to import at least one locale-data with intl.
84 // import 'intl/locale-data/jsonp/en';