javascript - Ember unable to find template -
i trying render view dynamically in ember.js
resume.itemview = em.view.create({ click: function(){ var view = em.view.create({ templatename: 'my_exp'}); view.append(); }, });
i have in /templates my_exp.hbs
but get
uncaught error: assertion failed: specified templatename my_exp <ember.view:ember261>, did not exist.
is there better approach trying this? can suggest resources?
a recent update ember removed defaultcontainer looking templates. people manually creating views has created issues.
to achieve want need use createchildview
.
resume.itemview = em.view.create({ click: function(){ var view = this.createchildview(ember.view, { templatename: 'my_exp' }); view.append(); }, });
(see fiddle)
Comments
Post a Comment