Question

I am new to both Knockout and jQuery-Templates. I am trying to do something similar to this in that I need to be able to add entities related to a parent entity. In the example link, he is using a library called knockout-sortable in order to get <li> sorting functionality. I am not in need of that functionality and am having a hard time figuring out the correct code changes to make it work. Currently I am receiving no error, yet also no functionality. I am completely lost.

TLDR: http://jsfiddle.net/jpm0004/LkqTU/15412/

Update: I would actually prefer to do this using Knockout templates instead after further research. I've found this page which looks extremely promising.

Était-ce utile?

La solution

I've changed your jsfiddle here slightly to get it working and show how I would lay things out.

The first reason it wasn't working was it was missing ko.applybindings

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top