C#C
C#2y ago
op1511

what is the best way to access the Model object in a razor view, in a javascript?

var model = @Html.Raw(Json.Encode(Model));

^ is this a good way
Was this page helpful?