Previously, I could do something like this to get a nested unordered list of items:
JavaScript:
App.Menu = Em.View.extend({ controller: App.menuController.create({}), tagName: 'ul', templateName: 'Menu', pageBinding: 'controller.page' });
Steering wheels:
<li> {{page.menuTitle}} {{#each page.childrenPages}} {{view App.Menu pageBinding="this"}} {{/each}} </li>
index.html
<script type="text/x-handlebars"> {{view App.Menu}} </script>
Now, after updating to the latest version of Ember.js (0.9.6), only the last element of any given set of elements is displayed (as one <li> in <ul> ). In previous versions of Ember, a <ul> / <li> nested list was displayed with all the elements in this collection.
I think that instead of a new App.Menu view being created every time through {{#each}}, the existing view is simply reused ... any ideas on how I can achieve something similar to the old behavior?
source share