AndreyAkinshin / knockout-mvc

Power of Knockout.js for ASP.NET MVC
http://knockoutmvc.com
203 stars 125 forks source link

KnockoutContext extended for working with multiple ViewModels in a same MVC View #16

Closed vfportero closed 11 years ago

vfportero commented 11 years ago

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:

All is tested and working in my development environment.

Regards!

AndreyAkinshin commented 11 years ago

You should follow Coding Guidelines for Pull Requests