All Projects → mudin → vue-global-var

mudin / vue-global-var

Licence: MIT License
Reactive global variable can be sharable between components

Programming Languages

javascript
184084 projects - #8 most used programming language
typescript
32286 projects

Projects that are alternatives of or similar to vue-global-var

ScoreboardStats
Bukkit plugin for customizing the sidebar of the scoreboard feature from minecraft
Stars: ✭ 29 (+38.1%)
Mutual labels:  variables
family.styl
port of family.scss to stylus
Stars: ✭ 19 (-9.52%)
Mutual labels:  mixins
requireg
Resolve and require local & global modules in node.js like a boss
Stars: ✭ 45 (+114.29%)
Mutual labels:  global
orchparty
Write your own orchestration config with a Ruby DSL that allows you to have mixins, imports and variables.
Stars: ✭ 37 (+76.19%)
Mutual labels:  mixins
Orion
Mixin loader for Paper
Stars: ✭ 46 (+119.05%)
Mutual labels:  mixins
environment-variables
🌳 Provides an abstraction of environment variables.
Stars: ✭ 33 (+57.14%)
Mutual labels:  variables
hass-variables
Home Assistant variables component
Stars: ✭ 35 (+66.67%)
Mutual labels:  variables
expandvars
Expand system variables Unix style
Stars: ✭ 17 (-19.05%)
Mutual labels:  variables
Mixin
React.js like Mixin. More powerful Protocol-Oriented Programming.
Stars: ✭ 45 (+114.29%)
Mutual labels:  mixins
richvariables
DEPRECATED Allows you to easily use Craft Globals as variables in Rich Text fields
Stars: ✭ 44 (+109.52%)
Mutual labels:  variables
hagrid
📏 Hagrid is a mixin library for responsive websites and web applications.
Stars: ✭ 30 (+42.86%)
Mutual labels:  mixins
jest-it-up
🌐📈 Automatically bump up global Jest thresholds whenever coverage goes above them
Stars: ✭ 37 (+76.19%)
Mutual labels:  global
ngx-env
Easily inject environment variables into your Angular applications
Stars: ✭ 73 (+247.62%)
Mutual labels:  variables
gpkg
🌎 A global Node binary manager written in Rust
Stars: ✭ 53 (+152.38%)
Mutual labels:  global
website
Prometheus monitoring mixins
Stars: ✭ 91 (+333.33%)
Mutual labels:  mixins
buttono
A flexible Sass mixin for creating BEM-style buttons.
Stars: ✭ 82 (+290.48%)
Mutual labels:  mixins
landmap
Landmap package for R
Stars: ✭ 33 (+57.14%)
Mutual labels:  global
Flutter-Global-Config
A flutter package for managing different configurations and making them available everythere inside the app.
Stars: ✭ 88 (+319.05%)
Mutual labels:  global
pingmote
Cross-platform Python global emote picker to quickly insert custom images/gifs
Stars: ✭ 24 (+14.29%)
Mutual labels:  global
node-v
🔒 Secure ❄️ Synchronized ⚡️ Realtime ☁️ Cloud 🌈 Native JavaScript Variables & Events
Stars: ✭ 27 (+28.57%)
Mutual labels:  variables

License npm version HitCount size

vue-global-var

Reactive global variable can be sharable between components

Demo

Dependencies

Installation

$ npm install --save vue-global-var

How to use

Vue.use(VueGlobalVar, {
  globals: {
    $user: new User('user1'),
    obj:{},
    config:Config,
    ....
  },
});

Now just use this.$user is any component or $user in its template

License

MIT

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].