vue-global-var
vue-global-variable
Reactive global variable can be sharable between components
Dependencies
Installation
$ npm install --save vue-global-var
How to use
Vue.use(VueGlobalVariable, {
globals: {
user: new User('user1'),
obj:{},
config:Config,
....
},
});
Now just use this.$user is any component or $user in its template
License
MIT
Related Packages
direct-vuex
Use and implement your Vuex store with TypeScript types. Compatible with the Vue...
90,286
255
undo-redo-vuex
A Vuex plugin for module namespaced undo and redo functionality. This plugin tak...
9,207
47
Version History
| Version | Released | Vue | License |
|---|---|---|---|
| 1.0.0 | ^2.6.6 | MIT | |
| 0.0.4 | ^2.6.6 | MIT | |
| 0.0.3 | ^2.6.6 | MIT | |
| 0.0.2 | ^2.6.6 | MIT | |
| 0.0.1 | ^2.6.6 | MIT |