How can I write some value inside a separate JS file?
just an example:
// this is my file.js
var url = @Url.Action("foo");
var x = @Model.X
var y = @varY
If this is not possible what workaround can i take?
How can I write some value inside a separate JS file?
just an example:
// this is my file.js
var url = @Url.Action("foo");
var x = @Model.X
var y = @varY
If this is not possible what workaround can i take?