问题
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