st-h / ember-content-editable

A contenteditable component for ember-cli that just works™
MIT License
66 stars 31 forks source link

Not working with array #29

Closed htycm closed 7 years ago

htycm commented 7 years ago

if I have something like {{#each myArray as |element|}} {{content-editable value=element}} {{/each}}

It does not seem to be binding the value. Can anyone help?

htycm commented 7 years ago

Realized it is an ember thing that primitive values are not bound in {{each}}, simple solution to use a object array instead of array of numbers