简体   繁体   English

如何在ember入门套件中使用ember 2.0?

[英]how to use ember 2.0 with ember starter kit?

I'm trying to use the recent release of ember-2.0.0 with the ember starter kit . 我正在尝试将ember-2.0.0的最新版本ember starter kit一起使用 The only change I've made is to upgrade the versions of the included ember as well as the 2.0.0 version of the template-compiler. 我所做的唯一更改是升级了所包含的余烬的版本以及模板编译器的2.0.0版本。 The index.html page renders with no errors, no deprecation warnings, and no index template. index.html页呈现的内容没有错误,没有弃用警告和索引模板。

Has support for templates defined in script tags been removed? 是否已删除对脚本标记中定义的模板的支持? Or the syntax changed? 还是语法改变了?

Here is my fork with the above changes 这是我进行上述更改的叉子

索引模板实际上是呈现的,但是把手{{#each helper的语法已更改:

javascript {{#each model as |item|}} <li>{{item}}</li> {{/each}}

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM