If you have a few methods that are reusable by different components, is there a way to do this in the same “main.js” script for example, instead of another additional script (for example: “common.js”)?
I don’t mean just adding them in a script tag in the “main.js” though. I mean - use them in some sort of vue fashion. Again, assuming no web pack or other installations. Just pure vue.
For example - if I have a FormatDate(date) function that I want to use everytime I’m adding a date (in different components) - how can I get this common method utilized (short of what I mentioned above: Ex: “common.js”)?