Is it possible to access a Model property in an external Javascript file?
e.g. In \"somescript.js\" file
var currency = \'@Model.Currency\'; alert(cu
I had the same problem and I did this:
View.
`var model = @Html.Raw(Json.Encode(Model.myModel)); myFunction(model);`
External js.
`function myFunction(model){ //do stuff }`