Unobtrusive Knockout

Great question. I’ve been writing complex KnockoutJS views for awhile and was never satisfied until I switched to Ryan Niemeyer’s class binding provider.

The Knockout ClassBindingProvider allows you to declare your bindings in a JavaScript object and then reference them from a data-class attribute similar to how css classes work. It works great!

See an example TodoMVC app.

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)