es6-shim

Angular 2 is not working on ie 9

北战南征 提交于 2019-12-13 18:31:53
问题 I've been trying to run an Angular 2 application as a template but while it works really well in Chrome and after adding polyfills it worked on IE 10 and 11 I'm struggling to get it working in IE9! I added Shims polyfills for IE. <!--[if IE]> <script src="https://cdnjs.cloudflare.com/ajax/libs/es6-shim/0.35.3/es6-shim.js"></script> <script src="node_modules/systemjs/dist/system-polyfills.js"></script> <script src="https://npmcdn.com/angular2/es6/dev/src/testing/shims_for_IE.js"></script>

Using es6-shim in an Angular2/TypeScript project

荒凉一梦 提交于 2019-12-10 19:24:08
问题 I want to use es6's Map for an Angular2/typescript project. I guess the way to achieve that is through the es6-shim library. However I am really confused on how I am supposed to do that. Here is what I have done so far: On my root index.html file I have this: <script src="../node_modules/es6-shim/es6-shim.js"></script> The above works just fine because if I run my app now it will load with no problems. Then, in one of my typescript files I have this: import * as shim from 'es6-shim/es6-shim

Angular 2 performance IE11 *ngFor

↘锁芯ラ 提交于 2019-12-03 17:33:07
问题 I'm trying Angular 2 and I noticed that performance on Internet Explorer 11 is dramatically slow while cycling with *ngFor over 1500 items. It takes about 25sec with IE11 whereas less then 1sec on other browsers. Pausing the debugger I noticed that the code constantly calls isNan function in es6-shim.js. Here the call stack: A working plnkr here: http://plnkr.co/edit/sEujClHmuCbrydIiYQYL?p=preview . The code is very simple: <ul *ngFor="#item of items"> <li>Item: {{item.itemKey}}</li> </ul> /

Angular2 why do we need the es6-shim

我们两清 提交于 2019-12-03 16:22:36
问题 Following the Angular2 Quickstart Guide we are instructed to include es6-shim in 2 places: 1) index.html <script src="node_modules/es6-shim/es6-shim.min.js"></script> 2) typings.json "ambientDependencies": { "es6-shim": "github:DefinitelyTyped/DefinitelyTyped/es6-shim/es6-shim.d.ts#6697d6f7dadbf5773cb40ecda35a76027e0783b2" } I was under the impression that we are compiling our es6 code down to es5 . Configured in tsconfig.json { "compilerOptions": { "target": "es5", ... If the end result is

Angular 2 performance IE11 *ngFor

混江龙づ霸主 提交于 2019-12-03 06:16:15
I'm trying Angular 2 and I noticed that performance on Internet Explorer 11 is dramatically slow while cycling with *ngFor over 1500 items. It takes about 25sec with IE11 whereas less then 1sec on other browsers. Pausing the debugger I noticed that the code constantly calls isNan function in es6-shim.js. Here the call stack: A working plnkr here: http://plnkr.co/edit/sEujClHmuCbrydIiYQYL?p=preview . The code is very simple: <ul *ngFor="#item of items"> <li>Item: {{item.itemKey}}</li> </ul> //Load items simulating remote load setTimeout(function(){ for (let i = 0; i < 1500; i++) { self.items

HTML5, ES6 template string polyfill

与世无争的帅哥 提交于 2019-12-01 16:03:26
For our application we need to use new feature template string . var verLongKey= `834r845784576485 y84ery5845y485yu843 483y53485684576845 jhu87843647356756745==457485,mh ererthe8t0998785==ery8`; But old browsers(like android default browsers) don't support template string. How can I get polyfill for this feature? Tried babel . We got this polyfill working for all features but template string . Currently using modernizr to detect support and show alert to use other browser. This approach is annoying for users. How can i get some polyfill to make this work on the non supporting browsers? What

HTML5, ES6 template string polyfill

。_饼干妹妹 提交于 2019-12-01 14:10:59
问题 For our application we need to use new feature template string. var verLongKey= `834r845784576485 y84ery5845y485yu843 483y53485684576845 jhu87843647356756745==457485,mh ererthe8t0998785==ery8`; But old browsers(like android default browsers) don't support template string. How can I get polyfill for this feature? Tried babel. We got this polyfill working for all features but template string . Currently using modernizr to detect support and show alert to use other browser. This approach is