urish / angular-load

Dynamically load scripts and css stylesheets in your Angular.JS app
MIT License
243 stars 65 forks source link

IE8 compatibility #17

Closed arambert closed 8 years ago

arambert commented 9 years ago

To ensure IE 8 compatibility, one must change the line https://github.com/urish/angular-load/blob/master/angular-load.js#L61 by :

var ua = $window.navigator.userAgent.toLowerCase();
if (ua.indexOf('msie 8') != -1){
  document.getElementsByTagName('head')[0].appendChild(style);
} else {
  $document[0].head.appendChild(style);
}

I hope it will help !

urish commented 8 years ago

thanks, though, I am not interested in maintaining IE8 compatibility