0
kicks
Exposing the View Model to JavaScript in ASP.NET MVC
View models make it easy to move data between your views and controllers in a strongly-typed manner, but what's the best way to leverage the view model from JavaScript? This post looks at some of the alternatives and presents a clean, simple way to convert the view model to an equivalent JavaScript object by using JSON on the master page.