3 ms·
This example from the docs seems quite heavy: <button data-bind="click: function(data, event) { myFunction('param1', 'param2', data, event) }"> Feels a bit st
by tipiirai 13y ago
This example from the docs seems quite heavy:
<button data-bind="click: function(data, event) { myFunction('param1', 'param2', data, event) }">
Feels a bit strange to define functions on the HTML code.
- lauripiispanen 13y agoIf you look at the examples above it, they contain references to functions in scope. This particular example demonstrates that you can also do custom binding if you wish. Most often you don't.