Exposing the View Model to JavaScript in ASP.NET MVC(trycatchfail.com)
submitted by
Matt_TCF(946) 2 years, 5 months ago
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.
|category: MVC
|Views: 393
tags:
ASPNETMVC MVC another
Everyones tags:
Your Tags: