<script type="text/javascript">
var myViewModel ={
isFollowing: @Json.Encode(Model.IsFollowing)
// This is a T# bool };
</script>
Using Razor, how do I render a Boolean to a JavaScript variable
In this article you can find how render a Boolean to a JavaScript variable in a cshtml file
Last modified on Wednesday, 17 February 2016 09:28
Tagged under:
Published in: Articles
Comments
Here is my site; removals (myspace.com: https://myspace.com/nastysavior6601/post/activity_profile_17276181_c86f7c3225364bb6ad2fe44ae932c6b0/)