我试图呈现一个视图动态地Ember.js灰烬无法找到模板
Resume.ItemView = Em.View.create({
click: function(){
var view = Em.View.create({
templateName: 'my_exp'});
view.append();
},
});
我在/模板my_exp.hbs
,但得到
Uncaught Error: assertion failed: You specified the templateName my_exp for <Ember.View:ember261>, but it did not exist.
有试图做到这一点的更好方法?谁能建议资源?
如果你到控制台,输入'Ember.TEMPLATES',你看到你的模板集合中? – MilkyWayJoe 2013-05-08 22:45:08
是: Ember.TEMPLATES; 对象{application:function,... my_exp:function ...} – 2013-05-08 22:49:04
我的朋友...工作。谢谢 – 2013-05-09 02:40:18