Search snippets
Browse Code Answers
FAQ
Usage docs
Log In
Sign Up
Home
Javascript
MVC view pass model to javascript function
user8155
Programming language:
Javascript
2021-05-21 08:27:36
0
Q:
MVC view pass model to javascript function
William Sebald
Code:
Javascript
2021-05-03 21:00:30
//Get your view model from js var dto = @Html.Raw(Json.Encode(Model));
0
Tags
java
javascript
function
pass
script
model
Related
pass value from one component to another in polymer
laravel pass collection to javascript
mvc set javascript variable from model
New to Communities?
Join the community