@leonardpauli/lp-vue-store
v0.1.2
Published
Simple global store using vue observables
Downloads
2
Readme
@leonardpauli/lp-vue-store
Simple global store using vue observables
Usage:
npm i @leonardpauli/lp-vue-store
import Store from '@leonardpauli/lp-vue-store'
- (see
./example
for examples)
Try example:
git clone [email protected]:leonardpauli/lp-vue-store.git
cd lp-vue-store
npm run example
- demo should now open in browser, see source for usage
- or view it at: https://lp-vue-store-example.now.sh
Demo includes:
- error handling
- loading state
- empty state
- lists
- modules/sub-modules
- actions (inc. async)
- computed
- module static data
- module props validation
- $store globally reachable (key changeable)
- works great with Vue, no fuzz, just nicely works
much thanks to vue's existing logic
Contribute
Feel free to fork and send PR's :)
Copyright © Leonard Pauli, 2018
Licence: ISC.