brtnshrdr / angular2-image-zoom

An Angular2 Image Zoom Directive
MIT License
22 stars 16 forks source link

angular2-image-zoom working on IE-11 #21

Closed lakshmikantdeshpande closed 6 years ago

lakshmikantdeshpande commented 6 years ago

Thanks for creating this library :) It works really well on Chrome, but it doesn't seem to work on IE-11. I've added a screenshot for your reference.

Here's some information: IE version : v11.2125.14393.0 Windows 10 Angular version: 4.4.6

screenshot

lakshmikantdeshpande commented 6 years ago

Update: It started working after using polyfills. Thanks

lakshmikantdeshpande commented 6 years ago

We need to add these imports in polyfills.ts file:

import 'core-js/es6/symbol'; import 'core-js/es6/object'; import 'core-js/es6/function'; import 'core-js/es6/parse-int'; import 'core-js/es6/parse-float'; import 'core-js/es6/number'; import 'core-js/es6/math'; import 'core-js/es6/string'; import 'core-js/es6/date'; import 'core-js/es6/array'; import 'core-js/es6/regexp'; import 'core-js/es6/map'; import 'core-js/es6/weak-map'; import 'core-js/es6/set';