blob: 510d3058704edb10efb4531efec92c7926aca55a [file] [log] [blame]
Lvbo163f721b1a2017-08-23 17:27:33 +08001/**
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
8 *
9 * Contributors:
10 * ZTE - initial API and implementation and/or initial documentation
11 */
12
13/**
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.
16 *
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
20 * file.
21 *
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.
25 *
26 * Learn more in https://angular.io/docs/ts/latest/guide/browser-support.html
27 */
28
29/***************************************************************************************************
30 * BROWSER POLYFILLS
31 */
32
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';
48
49/** IE10 and IE11 requires the following for NgClass support on SVG elements */
50// import 'classlist.js'; // Run `npm install --save classlist.js`.
51
52/** Evergreen browsers require these. **/
53import 'core-js/es6/reflect';
54import 'core-js/es7/reflect';
55
56
57/**
58 * Required to support Web Animations `@angular/animation`.
59 * Needed for: All but Chrome, Firefox and Opera. http://caniuse.com/#feat=web-animation
60 **/
61// import 'web-animations-js'; // Run `npm install --save web-animations-js`.
62
63
64
65/***************************************************************************************************
66 * Zone JS is required by Angular itself.
67 */
68import 'zone.js/dist/zone'; // Included with Angular CLI.
69
70
71
72/***************************************************************************************************
73 * APPLICATION IMPORTS
74 */
75
76/**
77 * Date, currency, decimal and percent pipes.
78 * Needed for: All but Chrome, Firefox, Edge, IE11 and Safari 10
79 */
80// import 'intl'; // Run `npm install --save intl`.
81/**
82 * Need to import at least one locale-data with intl.
83 */
84// import 'intl/locale-data/jsonp/en';