How can I do multiple afterAdds?
%tbody{:'data-bind' => "foreach: { data: products, afterAdd: [function1, function2] }"} You can make the function that you bind to afterAdd handle 2 functions:
viewModel.myAfterAdd = function(element) { if (element.nodeType === 1) { viewModel.someFunc(); viewModel.anotherFunc(); }