fix(charts): add polyfills for the IE for d3 charts

This commit is contained in:
KostyaDanovsky 2017-09-20 11:07:52 +03:00
parent 4fd404788a
commit f0325bab13
3 changed files with 7 additions and 9 deletions

View file

@ -69,3 +69,9 @@ import 'zone.js/dist/zone'; // Included with Angular CLI.
* Needed for: All but Chrome, Firefox, Edge, IE11 and Safari 10
*/
import 'intl'; // Run `npm install --save intl`.
import 'core-js/es7/array';
if (typeof SVGElement.prototype.contains === 'undefined') {
SVGElement.prototype.contains = HTMLDivElement.prototype.contains;
}