Pregunta

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.

¿Fue útil?

Solución

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

Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top