0👍
If you need your user on every page, what about something like this?
new Vue({
el: "#app",
mounted: function() {
// make a request to the api here
},
});
- [Vuejs]-"Sync" two JS objects in Vue.js
- [Vuejs]-ERROR in renderer.js from UglifyJs Unexpected token punc «(»
Source:stackexchange.com