vue-tiny-store
A very simple, elegant and easy alternative to vuex within less than 1.5kb
Note:
Vue 1.x is not supported.
Usage
Install
Download file vue-tiny-store.min.js
and import and register Vue plugin:
Quickstart
Create your stores in separate files, for example counter.js
Reference store in main.js
with stores
parameter
Finally, just manage global state in your components, without importing in each file of store. It's clean!
Configuration
Vue Tiny Store takes 2 parameter: (stores, [debug])
Options
Parameter | Type | Default | Requiered | Description |
---|---|---|---|---|
stores | array |
null |
true |
Names or references of stores |
debug | boolean |
false |
false |
Watch debug events/actions into development console |
Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
License
Contact me
- email: hola@emanuelcapurro.com
- twitter: @ecapurro_ok
Author
Copyright © 2022 - Emanuel Capurro