Tuesday, July 30, 2013

Knockout.js binding syntax bind to root, self, current context

When using knockout.js if your ViewModel is an array and you want to bind to the entire ViewModel, the syntax to bind to the ViewModel root, when the root is the current context:

The XAML syntax equivalent when the DataContext is an array:

Hope this helps,
Post a Comment