DanWahlin / Angular-JumpStart

Angular and TypeScript JumpStart example application

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Polyfill load order does not match Angular2 documentation

JavascriptMick opened this issue · comments

Angular2 documentation https://angular.io/docs/ts/latest/guide/router.html#!#browser-url-styles states...

IE needs help with that. Make sure the following polyfill libraries are loaded in the index.html above the Angular polyfill

but in index.html, you are loading them below...

   <script src="/node_modules/angular2/bundles/angular2-polyfills.js"></script>
   <script src="/node_modules/es6-shim/es6-shim.min.js"></script>
   <script src="/node_modules/systemjs/dist/system.src.js"></script>

any reason for this? Will this not work in ie?

Thanks for the info there!

The way it was previously loading scripts in index.html was how we've been doing it for quite awhile. But, thanks for pointing out the changes in the docs there since that's new (or at least new since the last time I looked). Just implemented that change as far as the polyfills go.

There's still a problem loading the app in IE11 (works in Edge though) but I haven't had time to locate the root cause of the problem there. Seems to work great everywhere else.