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

http://jsfiddle.net/zaius/XYzfa/

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.

+3


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).

+2


source







All Articles