Answer the question
In order to leave comments, you need to log in
How to include a js file in another js file (without a faucet), then use the data in Vue?
such a structure - there is a main html file, a js folder with several files, one of them is the api.js file, where the constant is stored - an object that I need to use in another js file (in which I work with Vue). How to include one file in another without a collector?
Answer the question
In order to leave comments, you need to log in
Without a collector - connect everything in html with your hands and pass the necessary variables through the global scope
https://learn.javascript.ru/modules
https://developer.mozilla.org/ru/docs/Web/JavaScri...
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question