Ember.js dynamic child views

I am having problems getting ember to display a dynamic child view. It seems that after viewing the child, the binding is lost. Here's the jsfiddle


When you click between two editor pages, the child view stays on the first view that was displayed. Is there a way to tell ember to update the view, or am I completely wrong about this?

I'm new to ember, so any general feedback on my code is appreciated too.


source to share

1 answer

You should consider using Ember.ContainerView

(see documentation ) for such dynamic content.

Illustrating the JSFiddle here (I've also reworked your code a bit to be more idiomatic).



All Articles