Answer the question
In order to leave comments, you need to log in
How to call a function from another file in vue?
All the best, I have functions that may be needed in many components. How can I do it right so that it would be possible to call functions from any component that are described somewhere once. For example from another component. There is an option to use provide, but somehow it seemed to me not good to throw a bunch of functions on the root component in order to make the functions available globally. How to do it more correctly? Thank you.
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question