Domanda

I'm beginner in Knockout and I need some help here.

I sliced some part of my code, which I can't understand, why it doesn't work.

http://jsbin.com/ezuKume/1/edit?html,js,output

È stato utile?

Soluzione

Here is an updated jsbin for you.

You were doing a foreach on a <tr> element, but your data-bind was in a <div>. It should be either a <table> or a <tbody>

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top