vue-global-var

Reactive global variable can be sharable between components
9,559 22
Install
npm install vue-global-var
Latest Version:1.0.0
Vue:2
License:MIT
Last Updated:Sep 14, 2019
Links: GitHub  ·  npm
Maintainer: imudin07

vue-global-variable

Reactive global variable can be sharable between components

Demo

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

chameleon-store

chameleon的数据管理

1,482
spyfu-vuex-helpers

Utility functions for Vuex.

2,459 9
vuex-pathify

Ridiculously simple Vuex setup + wiring

322,817 1,358
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