使用angular2时如何配置system.js?

使用angular2时如何配置system.js?,angular,es6-promise,systemjs,Angular,Es6 Promise,Systemjs,我们正在使用angular 2制作一个小示例,我复制了quickstart示例中的代码,出现了一个错误:“es6Promise未定义” 我们发现不是纯system.js,它包含以下定制代码: document.write(' ') System.config({ 路径:{ "*":"https://registry.jspm.io/*.js“, “~/*”:“*.js”, “npm:*:”https://npm.jspm.io/*.js“, “github:*:”https://github.

我们正在使用angular 2制作一个小示例,我复制了quickstart示例中的代码,出现了一个错误:“es6Promise未定义”

我们发现不是纯system.js,它包含以下定制代码:

document.write('
')
System.config({
路径:{
"*":"https://registry.jspm.io/*.js“,
“~/*”:“*.js”,
“npm:*:”https://npm.jspm.io/*.js“,
“github:*:”https://github.jspm.io/*.js“
},
地图:{
追踪者:“github:jmcriffey/bower-traceur@0.0.87",
“traceur运行时”:“github:jmcriffey/bower-traceur-runtime@0.0.87",
巴贝尔:“npm:巴贝尔-core@5"
}

});您可以在脚本标记中配置SystemJS,例如在index.html中:

<script>
  System.config({
    baseURL: '<%= APP_BASE %>',
    paths: {'*': '*.js?v=<%= VERSION %>'},
    defaultJSExtensions: true
  });

</script>

检查这个正在运行的ES6/SystemJs/Angular 2种子的启动项目,由Angular 2团队成员Hi jhadesdev维护,感谢您的评论。我在src文件夹下的index.html中打开了链接,它引用了lib文件夹下的库,你知道我在哪里可以得到一个工作项目吗?如果你克隆repo或下载为zip,然后npm安装,然后gulp play它应该打开一个有工作页面的浏览器Hi cghislai,谢谢你的回答。我们知道如何在index.html中配置系统。我们使用了纯system.js并在html中对其进行了配置,得到了错误:es6Promise未定义。你知道怎么修吗?我们想知道天气如何system@0.16.js来了。
"angular2": "=2.0.0-alpha.37",
"es6-module-loader": "^0.16.6",
"systemjs": "^0.18.10",
"zone.js": "^0.5.4",
"reflect-metadata": "0.1.1"