visualizer icon indicating copy to clipboard operation
visualizer copied to clipboard

Error with Internet Explorer and .assign method

Open krptodr opened this issue 9 years ago • 2 comments

Hello, there is an issue when declaring the plugin. It seems there is not alternative to checking for the assign method when using IE.

Please have a look at http://stackoverflow.com/questions/35215360/getting-error-object-doesnt-support-property-or-method-assign

krptodr avatar Feb 08 '17 16:02 krptodr

We should replace usage of Object.assign with the extend function from ui-router-core.

christopherthielen avatar Feb 08 '17 17:02 christopherthielen

I decided to try and shim this for my AngularJS app by adding:

if (!$window.Object.assign) {
    $window.Object.assign = $window['@uirouter/angularjs'].extend;
}

Before the call to register the Visualizer with my uiRouterInstance, and that much worked.

However, that leads to another fatal stop because the Visualizer uses Promise and IE 11 doesn't have that. To work around that I added the es6-promise package to my project and added it to the list of third party scripts my build task compiles, works now!

p0lar-bear avatar Oct 19 '17 16:10 p0lar-bear