我已按照基本的应用说明操作:https://angular.io/guide/quickstart
我试图在IE9上获取跨域http请求,并看到很多涉及xdomain的非角度解决方案:https://github.com/jpillora/xdomain
我正在努力(添加不同的垫片)试图让xdomain与Angular2一起使用。我有什么东西在这里失踪吗?
错误我看到:执行的更多任务已安排
以下是我的index.html设置
<!DOCTYPE html>
<html>
<head>
<title>Angular QuickStart</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="styles.css">
<!-- 1. Load libraries -->
<!--[if lte IE 9]>
<script type="text/javascript">
'use strict';
// IE9 Console Bug Fix
window.console = window.console || {};
window.console.log = window.console.log || function() {};
</script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/xdomain/0.7.5/xdomain.js"></script>
<script type="text/javascript" src="_xdomainVariables.js"></script>
<![endif]-->
<script src="node_modules/ie-shim/dist/browser.js"></script>
<script src="node_modules/core-js/client/shim.js"></script>
<script src="node_modules/angular2-ie9-shims/shims_for_IE.dev.js"></script>
<script src="node_modules/systemjs/dist/system-polyfills.js"></script>
<script src="node_modules/zone.js/dist/zone.js"></script>
<script src="node_modules/reflect-metadata/Reflect.js"></script>
<script src="node_modules/systemjs/dist/system.src.js"></script>
<!-- 2. Configure SystemJS -->
<script src="systemjs.config.js"></script>
<script>
System.import('app').catch(function(err){ console.error(err); });
</script>
</head>
<!-- 3. Display the application -->
<body>
<my-app>Loading...</my-app>
</body>
</html>