I'm trying to create an Angular 2 application (using the getting started guide) as a template, but while it works very well in Chrome, I try my best to get it working in IE9!
Basically, the application does not work when loading / starting boot / js with the following error reported to the developer console.
LOG: Error: object does not support this action
Does anyone have any recommendations or suggestions - even better - a demo that really works in IE9?
The beginning of my index.html is as follows:
<head> <title ng-bind="title">xxx</title> <meta charset="utf-8" /> <meta http-equiv="X-UA-Compatible" content="IE=edge, chrome=1" /> <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, minimum-scale=1, user-scalable=no" /> <base href="/"> <link rel="stylesheet" href="/css/bootstrap.min.css" /> <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.5.0/css/font-awesome.min.css"> <link rel="stylesheet" href="/css/style.css" /> <link rel="stylesheet" href="/css/main.css" /> </body> <script src="https://cdnjs.cloudflare.com/ajax/libs/es5-shim/4.4.1/es5-sham.js"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/es6-shim/0.34.1/es6-sham.min.js"></script> <script src="/app/shims_for_IE.js"></script> <script src="https://rawgithub.com/systemjs/systemjs/0.19.6/dist/system.js"></script> <script src="https://code.angularjs.org/tools/typescript.js"></script> <script src="https://code.angularjs.org/2.0.0-beta.1/angular2-polyfills.js"></script> <script src="https://code.angularjs.org/2.0.0-beta.1/Rx.js"></script> <script src="https://code.angularjs.org/2.0.0-beta.1/angular2.dev.js"></script> <script> System.config({ packages: { app: { format: 'register', defaultExtension: 'js' } } }); System.import('app/boot') .then(null, function(err){ console.log(err); }); </script>
Using the Angular code following https://angular.io/guide/quickstart in the letter!
Update 1: With a little more testing (mainly in new IE browsers) I am experiencing the same problem, but see more details.
TypeError: Object doesn't support property or method 'keys' at Anonymous function (http://localhost:5000/app/angular2.dev.js:783:5) at Anonymous function (http://localhost:5000/app/angular2.dev.js:781:3) at linkDynamicModule (https://cdnjs.cloudflare.com/ajax/libs/systemjs/0.19.16/system.src.js:3130:5) at getModule (https://cdnjs.cloudflare.com/ajax/libs/systemjs/0.19.16/system.src.js:3098:9) at Anonymous function (https://cdnjs.cloudflare.com/ajax/libs/systemjs/0.19.16/system.src.js:3134:9) at Anonymous function (http://localhost:5000/app/angular2.dev.js:10795:3) at linkDynamicModule (https://cdnjs.cloudflare.com/ajax/libs/systemjs/0.19.16/system.src.js:3130:5) at getModule (https://cdnjs.cloudflare.com/ajax/libs/systemjs/0.19.16/system.src.js:3098:9) at Anonymous function (https://cdnjs.cloudflare.com/ajax/libs/systemjs/0.19.16/system.src.js:3134:9) at Anonymous function (http://localhost:5000/app/angular2.dev.js:12011:3)
Currently index.html looks like.
<head> <title ng-bind="title">xxx</title> <meta charset="utf-8" /> <meta http-equiv="X-UA-Compatible" content="IE=edge, chrome=1" /> <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, minimum-scale=1, user-scalable=no" /> <base href="/"> <link rel="stylesheet" href="/css/bootstrap.min.css" /> <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.5.0/css/font-awesome.min.css"> <link rel="stylesheet" href="/css/style.css" /> <link rel="stylesheet" href="/css/main.css" /> <script src="https://cdnjs.cloudflare.com/ajax/libs/es5-shim/4.4.1/es5-sham.js"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/es6-shim/0.34.1/es6-sham.min.js"></script> <script src="https://code.angularjs.org/2.0.0-beta.1/angular2-polyfills.js"></script> <script src="https://code.angularjs.org/tools/typescript.js"></script> <script src="/app/reflect.js"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/systemjs/0.19.16/system.src.js"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/systemjs/0.19.16/system-polyfills.src.js"></script> <script src="https://code.angularjs.org/2.0.0-beta.1/Rx.js"></script> <script src="/app/angular2.dev.js"></script> <script src="/app/shims_for_IE.js"></script> <script> System.config({ packages: { app: { format: 'register', defaultExtension: 'js' } } }); System.import('app/boot') .then(function(){ }, function(err){ console.log(err.stack); }); </script>