1👍
Without using Vuex.. You can keep your global variables in the parent component and then just pass them down as props. Alternatively, you can store things in the browser’s local storage and then access them from components when you need to. This will kind of act as a way of setting global variables and it’s quite widely adopted now.
Source:stackexchange.com