Im relatively new with VueJS, and I\'ve got no clue about how to make some data globally available. I would like to save data like API endpoints, user data and some other da
I just use an environment.js file to store all of my endpoints as object properties.
var urls = {};
urls.getStudent = "api/getStudent/{id}";
etc...
Then I put reference to this environment.js file in the head of document on pages where I have VueJS code that needs access to those endpoints. Im sure there are many ways to do this.