How can I use the content of a file in JavaScript as does VueJS with .vue files? As far as I am aware Vue doesn't use any Ajax to achieve this. So if I have a .whatever file how can I import / parse this external content?
-
just add that external file reference in .html and use access the functions, objects from your .js fileUthistran Selvaraj– Uthistran Selvaraj2020-06-24 17:28:22 +00:00Commented Jun 24, 2020 at 17:28
-
stackoverflow.com/questions/48211891/…Uthistran Selvaraj– Uthistran Selvaraj2020-06-24 17:30:13 +00:00Commented Jun 24, 2020 at 17:30
-
Could you code a tiny example?user10962932– user109629322020-06-24 17:33:12 +00:00Commented Jun 24, 2020 at 17:33
-
Does this work without a server running?user10962932– user109629322020-06-24 19:18:50 +00:00Commented Jun 24, 2020 at 19:18
Add a comment
|