Useful Knockout.js Debugging Nugget

3 Flares Twitter 1 Facebook 0 StumbleUpon 1 Google+ 1 LinkedIn 0 3 Flares ×

A really short post, but this little template insert for knockout is incredibly useful when you’re not sure what’s going on inside your view model:

This snippet essentially outputs the contents of your view model as text on to your page. What I like to do with things like this is add them to a Resharper live template – for me, whenever I’m inside my cshtml file, I just type “kodebug” and I get the above snippet. Sometimes the simplest things are the most useful!!

, , ,

The Essential App Marketing Kit
Subscribe To My Newsletter To Get an Entire Chapter From The Book for FREE
Never display this again
3 Flares Twitter 1 Facebook 0 StumbleUpon 1 Google+ 1 LinkedIn 0 3 Flares ×