Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
How this is possible and is there any feature in umbraco?
If I understand you correctly you'll need to create a REST service, which you can achieve by using Web API - You can read and learn more about it in the documentation here https://our.umbraco.com/Documentation/Reference/Routing/WebApi/
I hope this helps!
Thanks for the update
Actually here i'm using inline java script to read umbraco model value and assigned it to global variable (for doing some validation in external java script) like below
var Name = @(Model.Content.GetPropertyValue("Name"));
instead of using this inline i want to move that code to external java script file means, i want to read the umbraco model value in external java script file. how this is possible? is the umbraco has any service to read model property value from java script?
You could as Jan said create an API endpoint to call from your external JS file that returns the data you need,
is working on a reply...
Write your reply to:
Image will be uploaded when post is submitted