0👍
I don’t think access to the root component in such a way is possible and also not the best approach, instead created a config file, imported it and had a data property get the desired config from the configuration file.
- [Vuejs]-Laravel + Vue js Deploying on Shared hosting
- [Vuejs]-Vue <a @click="manageCookies()"> performs a redirect
Source:stackexchange.com