Handlebars action helper works in EmberJS 0.9.8.1, but not Ember 1.0 Pre

谁都会走 提交于 2019-12-10 20:08:56

问题


See http://jsfiddle.net/gazmcghee/v6PSA/. Clicking the link shows an alert. But changing the version of EmberJS under "Manage Resources" to https://github.com/downloads/emberjs/ember.js/ember-1.0.pre.js causes the link to disappear. How do I fix this ?


回答1:


In the EmberJS version 0.9.8.1, Handlebars was included by default in Ember.

Its not the case with the 1.0pre version, so you have to manually add it.

PS: Don't forget to add Add.initialize(), or you will see unexpected behaviour.

Here is your JSFiddle that includes Handlebars.



来源:https://stackoverflow.com/questions/12492003/handlebars-action-helper-works-in-emberjs-0-9-8-1-but-not-ember-1-0-pre

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!