forum

Home / DeveloperSection / Forums / Transfer view using javascript code to seprate js file in mvc

Transfer view using javascript code to seprate js file in mvc

Anonymous User 1943 26-May-2015

I’m using knockout.js in my asp.net mvc project I have javascript code

<script type="text/javascript">
    var model = "@Html.Raw(Json.Encode(Model))";
    $.get("@Url.Action("_CityPartial")" ...)
   </script>

How to transfer this javascript code in a separate js file.

Please solve this problem as soon as

Thanks in advance


Updated on 26-May-2015
I am a content writter !

Can you answer this question?


Answer

1 Answers

Liked By