Skip to content

Instantly share code, notes, and snippets.

@sshay77
sshay77 / Debug-Knockout-JS.html
Last active January 24, 2017 11:51 — forked from maxcnunes/Debug-Knockout-JS.html
Simple way to debug viewmodel data bind with knockout
1.
<pre data-bind="text: ko.toJSON($data, null, 2)"></pre>
2.
<ul data-bind="debug: $data">
<a href="https://www.safaribooksonline.com/blog/2014/02/26/debugging-bindings-knockout-3-0/">1<a/>
<a href="https://github.com/JonKragh/knockthrough">2<a/>