AndreyAkinshin/knockout-mvc — pull request #38 by vfportero (2013-07-15 14:30:39+00:00)
Title: KnockoutContext extended for working with multiple ViewModels in a same MVC View

I've create a new constructor for CreateKnockoutContext extension to accept a string as a custon ViewModelName (needed to use multiple viewmodels in a same view like a partials...).

Also, the Apply method have been extended to accept two new parameters:

wrapperId -> The elementid to do the knockout binding (needed for multiple viewmodels in same mvc view). Empty by default for back compatibility.
applyOnDocumentReady -> adds the "$(document).ready" header to the autogenerated binding script. False by default for back compatibility.
All is tested and working in my development environment.

Regards!

PS: Merged with current brunch and edited for follow the Code Guidelines