lundi 23 février 2015

Dynamically render templates and keep them in the DOM

How can i render my templates dynamically and keep them alive in the DOM? Basically, I wanna render my templates within a {{#each}} loop based on some model data and keep them in the DOM. I've been able to do most of the work but there's still one issue unresolved. I can render my templates with the help of a custom Handlebars helper, and they're appended to the DOM, but their context (controllers) are not properly setup.


I've created a sample app and put it up a demo repo. You can find it at http://ift.tt/1BF0May


I'd appreciate it if anyone could help me out with this. I'm somewhat new to Ember and I'm using Ember 1.10.


Thanks in advance





Aucun commentaire:

Enregistrer un commentaire