Useful Knockout.js Debugging Nugget

0 Flares Twitter 0 Facebook 0 StumbleUpon 0 Google+ 0 LinkedIn 0 0 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
0 Flares Twitter 0 Facebook 0 StumbleUpon 0 Google+ 0 LinkedIn 0 0 Flares ×