AngularJS 1.3 page won't load in IE8

后端 未结 6 989
被撕碎了的回忆
被撕碎了的回忆 2021-02-09 23:52

As an angular user, I too shudder at the title of this question, due to the fact that IE8 is evil incarnate and should be put down like a rabid dog.

that being said, I w

6条回答
  •  花落未央
    2021-02-10 00:15

    Per the comments on the question, and Zenorbi's answer, Angular 1.3 does NOT load correctly in IE8 anymore. It was never designed to continue working in IE8, so this should not come as a surprise.

    I actually came up with a simple workaround that will make page load times slightly slower for any IE8 users which is an acceptable loss for me.

    using this code, I can simply load 1.3 by default, and if any IE8 users load the page, it will simply load angular 1.2 directly afterwards, simply overwriting any duplicated code:

    
    
    
    
    

    note: This is terrible practice generally. If we were making a larger effort to support IE8 users, I would go with Zenorbi's answer, since it allows you to load only one version of angular.

提交回复
热议问题