Knockout JS - How to correctly bind an observableArray

rev2k7

New Member
Please take a look at this example.http://jsfiddle.net/LdeWK/2/I want to know how to bind values of an observable array. I know the problem in the example above, it is this line\[code\]<p>Editing Fruit: <input data-bind="value: $data" /></p>\[/code\]$data is the actual value, not the observable function that you would normally bind.This seems like it should be a pretty straight forward process, however I cant figure it out.In other cases I have used observable arrays and had an observable object as each element of the observable array. I wanted to know how to get this to work with just observable array.Thanks
 
Top