ember.js - Moving an ArrayController/View to a Component in Ember 1.13 -
i'm in process of updating ember app use 1.13 , having issue translating particular ember.view , associated ember.arraycontroller ember.component, per deprecation guide.
after repurposing code, have following:
app/templates/page.hbs
{{example-component content=posts}} // "posts" being array of objects app/templates/components/post-list.hbs
{{#each content key="@index" |post|}} {{post.title}} {{/each}} in cases, order of items in posts array need change (via ember.sortablemixin), , these changes need reflected on screen. when this, however, seems though content isn't being binded correctly , doesn't update visually (though order of posts data correct in pagecontroller).
i hope makes sense. appreciated!
with of @locks in freenode irc, have answer. issue had key being iterated on in {{#each}} loop. changing key="@identity" (ember 1.13.2) works desired.
Comments
Post a Comment