Surya
Surya

Reputation: 4992

Ember js: binding to strings in a list

http://jsfiddle.net/C3quh/1/

i am directly binding to strings in the collection. Although values from the array show up as values in the textbox. changing the value in the textbox doesn't change the value in the array. how do i make this work?

Upvotes: 0

Views: 353

Answers (1)

Christopher Swasey
Christopher Swasey

Reputation: 10562

You can't bind to positions in an array. Instead, you should populate your arrays with Ember.Objects. Then, you can bind to a property on each of those objects.

Upvotes: 1

Related Questions