3 ms·
"I want two-way binding only, but I'm forced to take the whole framework. There is too much overhead for me. I hope they will make the data-binding a separate p
by lauripiispanen 13y ago
"I want two-way binding only, but I'm forced to take the whole framework. There is too much overhead for me. I hope they will make the data-binding a separate piece and make it simpler."
How about Knockout.js? http://knockoutjs.com/ http://knockoutjs.com/
- tipiirai 13y agoLooks decent. With a quick look the the binding system looks simpler than in Angular and the docs are not blowing up. They openly love jQuery. Much closer to my taste. I picked up the 3 frameworks on my blog entry because they seemed to be the most talked about. Have to keep an eye on this.
- tipiirai 13y agoThis 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.